fix(providers): preserve existing ShengSuanYun connections

This commit is contained in:
Xubin Ren committed 2026-11-14 20:44:28 +08:00
1 parent 41f7f6f337
commit eb1df4d7b1
10 files changed
+110 -27

No files matched your search

+1 -1
View File
@@ -324,7 +324,7 @@ class ProvidersConfig(Base):
openai: ProviderConfig = Field(default_factory=ProviderConfig)
openrouter: ProviderConfig = Field(default_factory=ProviderConfig)
orcarouter: ProviderConfig = Field(default_factory=ProviderConfig)
shengsuanyun: ProviderConfig = Field(default_factory=ProviderConfig)
shengsuanyun_router: ProviderConfig = Field(default_factory=ProviderConfig)
assemblyai: ProviderConfig = Field(default_factory=ProviderConfig)
huggingface: ProviderConfig = Field(default_factory=ProviderConfig)
skywork: ProviderConfig = Field(default_factory=ProviderConfig)
+6 -6
View File
@@ -281,18 +281,18 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
detect_by_base_keyword="orcarouter",
default_api_base="https://api.orcarouter.ai/v1",
),
# ShengSuanYun model IDs include the upstream provider (e.g. deepseek/model).
# Keep the Router ID separate from existing custom connections named "shengsuanyun".
# Upstream model IDs retain their provider namespace (e.g. deepseek/model).
ProviderSpec(
name="shengsuanyun",
keywords=("shengsuanyun",),
name="shengsuanyun_router",
keywords=("shengsuanyun_router",),
env_key="SHENGSUANYUN_API_KEY",
request_apis=("chat_completions", "responses"),
display_name="ShengSuanYun",
display_name="ShengSuanYun Router",
backend="openai_compat",
is_gateway=True,
detect_by_base_keyword="shengsuanyun.com",
default_api_base="https://router.shengsuanyun.com/api/v1",
strip_model_prefixes=("shengsuanyun",),
strip_model_prefixes=("shengsuanyun_router",),
),
# Eden AI: OpenAI-compatible gateway. Models use the "provider/model"
# naming scheme (e.g. "anthropic/claude-sonnet-4-5"); the full id is sent upstream.