改进provider

This commit is contained in:
xunbu
2025-12-30 20:20:11 +08:00
parent d6e990f1da
commit 78ee7f9e88
6 changed files with 30 additions and 24 deletions

View File

@@ -317,18 +317,7 @@ app.mount("/static", StaticFiles(directory=STATIC_DIR), name="static")
# ===================================================================
# --- Pydantic Models for Service API ---
# ===================================================================
ProviderType: TypeAlias = Literal[
"ollama",
"open.bigmodel.cn",
"dashscope.aliyuncs.com",
"ark.cn-beijing.volces.com",
"generativelanguage.googleapis.com",
"api.siliconflow.cn",
"api.302.ai"
] | str
# =================================================================
# 4. 创建最终的请求体模型