feat: add china operator llm providers

This commit is contained in:
jxxghp
2026-05-24 09:30:41 +08:00
parent 6430b864b4
commit dc73d61682
4 changed files with 261 additions and 2 deletions

View File

@@ -672,6 +672,88 @@ class LLMProviderManager(metaclass=Singleton):
description="腾讯兼容端点。",
sort_order=170,
),
ProviderSpec(
id="china-unicom",
name="中国联通",
runtime="openai_compatible",
default_base_url="https://aigw-gzgy2.cucloud.cn:8443/v1",
base_url_presets=(
url_preset(
id="china-unicom-coding-openai",
label="Coding Plan / OpenAI",
value="https://aigw-gzgy2.cucloud.cn:8443/v1",
model_list_strategy="manual",
),
url_preset(
id="china-unicom-coding-anthropic",
label="Coding Plan / Anthropic",
value="https://aigw-gzgy2.cucloud.cn:8443",
runtime="anthropic_compatible",
model_list_strategy="manual",
),
),
base_url_editable=True,
api_key_hint="填写联通云 AISP / Coding Plan 专属 API Key模型名称请按控制台可用模型 ID 手动填写。",
supports_model_refresh=False,
model_list_strategy="manual",
description="联通云 AISP Coding Plan 兼容端点,支持 OpenAI 与 Anthropic 协议地址预设。",
sort_order=172,
),
ProviderSpec(
id="china-mobile",
name="中国移动",
runtime="openai_compatible",
default_base_url="https://ecloud.10086.cn/api",
base_url_presets=(
url_preset(
id="china-mobile-moma",
label="MoMA / 移动云",
value="https://ecloud.10086.cn/api",
),
url_preset(
id="china-mobile-coding",
label="Coding Plan / 移动智算包",
value="https://zhenze-huhehaote.cmecloud.cn/api/coding/v1",
),
),
base_url_editable=True,
api_key_hint="填写中国移动 MoMA / 移动云 Token 服务 API Key如控制台下发专属域名请覆盖 Base URL。",
supports_model_refresh=False,
model_list_strategy="manual",
description="中国移动 MoMA / 移动云 OpenAI-compatible Token 服务,支持专属域名覆盖。",
sort_order=174,
),
ProviderSpec(
id="china-telecom",
name="中国电信",
runtime="openai_compatible",
default_base_url="https://wishub-x6.ctyun.cn/v1",
base_url_presets=(
url_preset(
id="china-telecom-token-service",
label="Token 服务 / 息壤",
value="https://wishub-x6.ctyun.cn/v1",
),
url_preset(
id="china-telecom-coding-openai",
label="编码套餐 / OpenAI",
value="https://wishub-x6.ctyun.cn/coding/v1",
model_list_strategy="manual",
),
url_preset(
id="china-telecom-coding-anthropic",
label="编码套餐 / Anthropic",
value="https://wishub-x6.ctyun.cn/coding/v1",
runtime="anthropic_compatible",
model_list_strategy="manual",
),
),
base_url_editable=True,
api_key_label="App Key",
api_key_hint="填写天翼云 Token 服务 / 息壤 App Key编码套餐模型请按控制台展示的模型 ID 手动填写。",
description="天翼云 Token 服务原模型推理服务OpenAI-compatible 端点,支持通用与编码套餐地址预设。",
sort_order=176,
),
ProviderSpec(
id="ollama-cloud",
name="Ollama Cloud",