Repository navigation
Conversation
This branch has not been deployed
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.
Closes #97
Summary
Lets the agent use OpenAI-compatible gateways such as OpenRouter, so self-hosters can choose other or cheaper models.
build_modeltreatsLLM_MODELvalues containing/(e.g.deepseek/deepseek-chat) as OpenAI-compatible and buildsChatOpenAI. The OpenAI SDK picks upOPENAI_BASE_URL, so no new settings are needed.vendor/modelform..env.example,docs/getting-started.mdanddocs/deployment.mddocumentOPENAI_BASE_URL.claude-*,gpt-*andchat-latestbehave as before. BYOK browser keys still go tohttps://api.openai.com/v1only.Testing
test_vendor_model_names_route_to_openai_compatible_gateway: checks theChatOpenAItype, the model name, and that the client base URL comes fromOPENAI_BASE_URL.uv run --directory apps/agent pytest: 112 passeddeepseek/deepseek-v4.1-flashandanthropic/claude-sonnet-5.5: text answers and interactive widgets work. Widgets also need fix(agent): stop duplicate streaming with server-held keys #99, which fixes duplicate streaming that affects every server-key setup.