mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
Fix Shengsuanyun prefixed model IDs
This commit is contained in:
@@ -158,7 +158,11 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
baseUrl: "https://router.shengsuanyun.com/api",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
modelRoutes: mappedRoutes(
|
||||
"anthropic/claude-sonnet-4.6",
|
||||
"anthropic/claude-opus-4.7",
|
||||
"anthropic/claude-haiku-4.5",
|
||||
),
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "shengsuanyun",
|
||||
icon: "shengsuanyun",
|
||||
|
||||
@@ -109,7 +109,7 @@ export const codexProviderPresets: CodexProviderPreset[] = [
|
||||
config: generateThirdPartyConfig(
|
||||
"shengsuanyun",
|
||||
"https://router.shengsuanyun.com/api/v1",
|
||||
"gpt-5.4",
|
||||
"openai/gpt-5.4",
|
||||
),
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
|
||||
@@ -58,11 +58,11 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://router.shengsuanyun.com/api",
|
||||
GEMINI_MODEL: "gemini-3.1-pro",
|
||||
GEMINI_MODEL: "google/gemini-3.1-pro-preview",
|
||||
},
|
||||
},
|
||||
baseURL: "https://router.shengsuanyun.com/api",
|
||||
model: "gemini-3.1-pro",
|
||||
model: "google/gemini-3.1-pro-preview",
|
||||
description: "Shengsuanyun",
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
|
||||
@@ -109,13 +109,13 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
{
|
||||
id: "claude-opus-4-7",
|
||||
id: "anthropic/claude-opus-4.7",
|
||||
name: "Claude Opus 4.7",
|
||||
contextWindow: 1000000,
|
||||
cost: { input: 5, output: 25 },
|
||||
},
|
||||
{
|
||||
id: "claude-sonnet-4-6",
|
||||
id: "anthropic/claude-sonnet-4.6",
|
||||
name: "Claude Sonnet 4.6",
|
||||
contextWindow: 1000000,
|
||||
cost: { input: 3, output: 15 },
|
||||
@@ -135,12 +135,12 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "shengsuanyun/claude-opus-4-7",
|
||||
fallbacks: ["shengsuanyun/claude-sonnet-4-6"],
|
||||
primary: "shengsuanyun/anthropic/claude-opus-4.7",
|
||||
fallbacks: ["shengsuanyun/anthropic/claude-sonnet-4.6"],
|
||||
},
|
||||
modelCatalog: {
|
||||
"shengsuanyun/claude-opus-4-7": { alias: "Opus" },
|
||||
"shengsuanyun/claude-sonnet-4-6": { alias: "Sonnet" },
|
||||
"shengsuanyun/anthropic/claude-opus-4.7": { alias: "Opus" },
|
||||
"shengsuanyun/anthropic/claude-sonnet-4.6": { alias: "Sonnet" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -310,8 +310,8 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"claude-opus-4-7": { name: "Claude Opus 4.7" },
|
||||
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
|
||||
"anthropic/claude-opus-4.7": { name: "Claude Opus 4.7" },
|
||||
"anthropic/claude-sonnet-4.6": { name: "Claude Sonnet 4.6" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
|
||||
Reference in New Issue
Block a user