fix(models): DeepSeek 写死已下线的 deepseek-chat,客户配完必坏
api.deepseek.com 已停用 deepseek-chat / deepseek-coder / deepseek-reasoner,
现在只接受 deepseek-v4-flash 和 deepseek-v4-pro,用旧名调用直接返回:
400 The supported API model names are deepseek-v4-pro or
deepseek-v4-flash, but you passed deepseek-chat.
Config.html 把 card.dataset.model 直接写进 openclaw.json 的 models[].id 和
agents.defaults.model.primary,所以客户只要在配置页点「DeepSeek」卡片,配出来
的就是必然失败的配置——网关照常 listening、webchat 照常连上,只在日志里刷
embedded_run_agent_end/isError=True,界面上表现为「发消息没反应」,极难自诊。
客户机 pc-5376 实测:连续 2 小时、20+ 次对话全部 400 失败。
改动(deepseek-chat -> deepseek-v4-flash):
- portable/Config.html data-model,落盘值
- portable/config-server/public/index.html data-model,落盘值(同一清单第 2 份拷贝)
- install/install.ps1 交互式选项 1
- install/install.sh 交互式选项 1 + 未知选项兜底
- u-claw-app/resources/Config.html 已废弃的 Electron 归档,一并改防止复活
- portable/Mac-Menu.command 提示文字
- portable/skills-cn/deepseek-helper/ 技能文档模型表(会被 AI 读取并转述给用户)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -355,9 +355,11 @@ metadata: { "openclaw": { "emoji": "robot" } }
|
||||
|
||||
| Model | Use case | Context |
|
||||
|-------|----------|---------|
|
||||
| deepseek-chat | Daily chat | 32K |
|
||||
| deepseek-coder | Code generation | 16K |
|
||||
| deepseek-reasoner | Complex reasoning | 64K |
|
||||
| deepseek-v4-flash | Daily chat, fast and cheap | 128K |
|
||||
| deepseek-v4-pro | Complex reasoning, code | 128K |
|
||||
|
||||
> Note: the legacy names `deepseek-chat` / `deepseek-coder` / `deepseek-reasoner` are
|
||||
> no longer accepted by api.deepseek.com and return HTTP 400.
|
||||
|
||||
- OpenAI-compatible API, base_url: https://api.deepseek.com
|
||||
- Direct access in China, API Key: https://platform.deepseek.com
|
||||
@@ -494,7 +496,7 @@ if ($hasConfig) {
|
||||
if ([string]::IsNullOrEmpty($choice)) { $choice = "1" }
|
||||
|
||||
$modelConfigs = @{
|
||||
"1" = @{ model="deepseek-chat"; baseUrl="https://api.deepseek.com/v1"; provider="custom"; label="DeepSeek API Key"; hint="Get key: https://platform.deepseek.com/api_keys"; needKey=$true }
|
||||
"1" = @{ model="deepseek-v4-flash"; baseUrl="https://api.deepseek.com/v1"; provider="custom"; label="DeepSeek API Key"; hint="Get key: https://platform.deepseek.com/api_keys"; needKey=$true }
|
||||
"2" = @{ model="moonshot-v1-auto"; baseUrl="https://api.moonshot.cn/v1"; provider="custom"; label="Moonshot API Key"; hint="Get key: https://platform.moonshot.cn/console/api-keys"; needKey=$true }
|
||||
"3" = @{ model="qwen-plus"; baseUrl="https://dashscope.aliyuncs.com/compatible-mode/v1"; provider="custom"; label="Qwen API Key"; hint="Get key: https://dashscope.console.aliyun.com/apiKey (free quota available)"; needKey=$true }
|
||||
"4" = @{ model="glm-4-plus"; baseUrl="https://open.bigmodel.cn/api/paas/v4"; provider="custom"; label="Zhipu API Key"; hint="Get key: https://open.bigmodel.cn/usercenter/apikeys"; needKey=$true }
|
||||
|
||||
Reference in New Issue
Block a user