feat(provider): add TheRouter presets for Claude, Codex, and Gemini (#1891)

* feat(provider): add TheRouter presets for Claude and Codex

* feat(provider): add TheRouter Gemini preset

---------

Co-authored-by: max <me19@qq.com>
This commit is contained in:
Max
2026-04-10 21:48:14 +08:00
committed by GitHub
parent 68df60bd4a
commit 7f1963ab49
4 changed files with 113 additions and 0 deletions
+18
View File
@@ -671,6 +671,24 @@ export const providerPresets: ProviderPreset[] = [
icon: "openrouter",
iconColor: "#6566F1",
},
{
name: "TheRouter",
websiteUrl: "https://therouter.ai",
apiKeyUrl: "https://dashboard.therouter.ai",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL: "https://api.therouter.ai",
ANTHROPIC_AUTH_TOKEN: "",
ANTHROPIC_API_KEY: "",
ANTHROPIC_MODEL: "anthropic/claude-sonnet-4.6",
ANTHROPIC_DEFAULT_HAIKU_MODEL: "anthropic/claude-haiku-4.5",
ANTHROPIC_DEFAULT_SONNET_MODEL: "anthropic/claude-sonnet-4.6",
ANTHROPIC_DEFAULT_OPUS_MODEL: "anthropic/claude-opus-4.6",
},
},
category: "aggregator",
endpointCandidates: ["https://api.therouter.ai"],
},
{
name: "Novita AI",
websiteUrl: "https://novita.ai",
+13
View File
@@ -365,4 +365,17 @@ requires_openai_auth = true`,
icon: "openrouter",
iconColor: "#6566F1",
},
{
name: "TheRouter",
websiteUrl: "https://therouter.ai",
apiKeyUrl: "https://dashboard.therouter.ai",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"therouter",
"https://api.therouter.ai/v1",
"openai/gpt-5.3-codex",
),
endpointCandidates: ["https://api.therouter.ai/v1"],
category: "aggregator",
},
];
+16
View File
@@ -241,6 +241,22 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
icon: "openrouter",
iconColor: "#6566F1",
},
{
name: "TheRouter",
websiteUrl: "https://therouter.ai",
apiKeyUrl: "https://dashboard.therouter.ai",
settingsConfig: {
env: {
GOOGLE_GEMINI_BASE_URL: "https://api.therouter.ai",
GEMINI_MODEL: "gemini-2.5-pro",
},
},
baseURL: "https://api.therouter.ai",
model: "gemini-2.5-pro",
description: "TheRouter",
category: "aggregator",
endpointCandidates: ["https://api.therouter.ai"],
},
{
name: "自定义",
websiteUrl: "",