Fix Shengsuanyun prefixed model IDs

This commit is contained in:
Jason
2026-05-28 13:16:44 +08:00
parent af60c7ed2c
commit 3d6fb894b5
5 changed files with 16 additions and 12 deletions
+5 -1
View File
@@ -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",
+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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,
+6 -6
View File
@@ -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" },
},
},
},
+2 -2
View File
@@ -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",