feat(providers): add ShengSuanYun gateway

This commit is contained in:
Xubin Ren committed 2026-11-14 20:44:28 +08:00
1 parent d35b755fc2
commit cc57c35014
10 files changed
+169 -1

No files matched your search

+1
View File
@@ -324,6 +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)
assemblyai: ProviderConfig = Field(default_factory=ProviderConfig)
huggingface: ProviderConfig = Field(default_factory=ProviderConfig)
skywork: ProviderConfig = Field(default_factory=ProviderConfig)
+13
View File
@@ -281,6 +281,19 @@ 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).
ProviderSpec(
name="shengsuanyun",
keywords=("shengsuanyun",),
env_key="SHENGSUANYUN_API_KEY",
request_apis=("chat_completions", "responses"),
display_name="ShengSuanYun",
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",),
),
# 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.
ProviderSpec(