-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(llm): route DeepSeek, Gemini, and OpenRouter through dedicated rig-core clients (#3201, #3225) #3326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(llm): route DeepSeek, Gemini, and OpenRouter through dedicated rig-core clients (#3201, #3225) #3326
Changes from all commits
1fac813
7632b2a
3129786
3a0b3a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,13 +124,14 @@ | |
| "aliases": [ | ||
| "open_router" | ||
| ], | ||
| "protocol": "open_ai_completions", | ||
| "default_base_url": "https://openrouter.ai/api/v1", | ||
| "protocol": "open_router", | ||
| "default_base_url": "", | ||
| "api_key_env": "OPENROUTER_API_KEY", | ||
| "api_key_required": true, | ||
| "model_env": "OPENROUTER_MODEL", | ||
| "extra_headers_env": "OPENROUTER_EXTRA_HEADERS", | ||
| "default_model": "openai/gpt-4o", | ||
| "description": "OpenRouter multi-provider gateway (200+ models)", | ||
| "description": "OpenRouter multi-provider gateway (200+ models, preserves reasoning across turns)", | ||
| "setup": { | ||
| "kind": "api_key", | ||
| "secret_name": "llm_openrouter_api_key", | ||
|
|
@@ -246,13 +247,13 @@ | |
| "aliases": [ | ||
| "deep_seek" | ||
| ], | ||
| "protocol": "open_ai_completions", | ||
| "default_base_url": "https://api.deepseek.com/v1", | ||
| "protocol": "deep_seek", | ||
| "default_base_url": "", | ||
| "api_key_env": "DEEPSEEK_API_KEY", | ||
| "api_key_required": true, | ||
| "model_env": "DEEPSEEK_MODEL", | ||
| "default_model": "deepseek-chat", | ||
| "description": "DeepSeek inference API", | ||
| "description": "DeepSeek inference API (preserves reasoning_content for thinking-mode models)", | ||
| "setup": { | ||
| "kind": "api_key", | ||
| "secret_name": "llm_deepseek_api_key", | ||
|
|
@@ -325,19 +326,19 @@ | |
| "google_gemini", | ||
| "google" | ||
| ], | ||
| "protocol": "open_ai_completions", | ||
| "default_base_url": "https://generativelanguage.googleapis.com/v1beta/openai", | ||
| "protocol": "gemini", | ||
| "default_base_url": "", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Medium Severity Gemini is still advertised as list-models capable, but the UI/setup list-models paths do not speak native Gemini. This registry entry now exposes adapter Please either add native Gemini model-listing support in the web handler/setup wizard or set
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 3a0b3a5 by setting |
||
| "api_key_env": "GEMINI_API_KEY", | ||
| "api_key_required": true, | ||
| "model_env": "GEMINI_MODEL", | ||
| "default_model": "gemini-2.5-flash", | ||
| "description": "Google Gemini (via OpenAI-compatible endpoint)", | ||
| "description": "Google Gemini native API (preserves thought_signature on tool calls)", | ||
| "setup": { | ||
| "kind": "api_key", | ||
| "secret_name": "llm_gemini_api_key", | ||
| "key_url": "https://aistudio.google.com/app/apikey", | ||
| "display_name": "Google Gemini", | ||
| "can_list_models": true | ||
| "can_list_models": false | ||
| } | ||
| }, | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3a0b3a5 —
providers.jsonnow exposes"extra_headers_env": "OPENROUTER_EXTRA_HEADERS". Users can now configureHTTP-Referer:…,X-Title:…for the built-inopenrouterbackend.