WIP: Add multi-LLM provider support and latest server changes#1
Draft
SamOwens1 wants to merge 1 commit into
Draft
WIP: Add multi-LLM provider support and latest server changes#1SamOwens1 wants to merge 1 commit into
SamOwens1 wants to merge 1 commit into
Conversation
Introduce a provider abstraction layer so the /chat HTTP endpoint can use Anthropic (default), OpenAI, or Google Gemini as the LLM backend. Provider is selected via LLM_PROVIDER env var or per-request. New files: - providers/ package (base class, Anthropic, OpenAI, Gemini implementations) - providers/tool_converter.py for Anthropic → OpenAI/Gemini schema conversion - anthropic_tools.json tool definitions - docs_search.py documentation search engine - mcp_server_instructions.md AI behaviour guidelines - patchworks-knowledge-base.md bundled product documentation Modified files: - server.py — /chat endpoint delegates to configured provider - patchworks_client.py — latest Patchworks API client changes - pyproject.toml — added openai and google-genai dependencies - .env.example — added LLM provider configuration variables No changes to MCP tools, stdio transport, or existing Anthropic behaviour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a provider abstraction layer so the /chat HTTP endpoint can use Anthropic (default), OpenAI, or Google Gemini as the LLM backend. Provider is selected via LLM_PROVIDER env var or per-request.
New files:
Modified files:
No changes to MCP tools, stdio transport, or existing Anthropic behaviour.