feat: 将智谱模型设为默认首要选择
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m29s

This commit is contained in:
2026-04-24 21:57:15 +08:00
parent 1117d76d64
commit 4722e2646a
3 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ class FrontendConfig:
layout: str = "wide"
# ==================== 模型配置(固定值,无需环境变量) ====================
default_model: str = "local"
default_model: str = "zhipu"
model_options: Optional[dict] = None
# ==================== 用户配置(固定值,无需环境变量) ====================
@@ -72,9 +72,9 @@ class FrontendConfig:
"""初始化后处理 - 设置默认值和加载环境变量"""
if self.model_options is None:
self.model_options = {
"zhipu": "智谱 GLM-4.7-Flash在线",
"local": "本地 llama.cppGemma-4",
"deepseek": "DeepSeek V3.2(在线)",
"zhipu": "智谱 GLM-4.7-Flash在线"
"deepseek": "DeepSeek V3.2(在线)"
}
# 从环境变量加载配置(优先级最高)