diff --git a/install/install.ps1 b/install/install.ps1 index d6ee8ba..c8fd851 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -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 } diff --git a/install/install.sh b/install/install.sh index fcaa82e..5d31e1e 100755 --- a/install/install.sh +++ b/install/install.sh @@ -495,9 +495,11 @@ metadata: { "openclaw": { "emoji": "🤖" } } | 模型 | 适用场景 | 上下文长度 | |------|---------|-----------| -| deepseek-chat | 日常对话、文案写作、知识问答 | 32K | -| deepseek-coder | 代码生成、代码审查、技术文档 | 16K | -| deepseek-reasoner | 复杂推理、数学、逻辑分析 | 64K | +| deepseek-v4-flash | 日常对话、文案写作、知识问答,快且便宜 | 128K | +| deepseek-v4-pro | 复杂推理、数学、代码 | 128K | + +> 注意:旧名 `deepseek-chat` / `deepseek-coder` / `deepseek-reasoner` 已被 +> api.deepseek.com 拒绝,调用会直接返回 HTTP 400。 ## 关键提示 @@ -796,7 +798,7 @@ else # 模型配置映射 case $MODEL_CHOICE in 1) - MODEL_NAME="deepseek-chat" + MODEL_NAME="deepseek-v4-flash" BASE_URL="https://api.deepseek.com/v1" PROVIDER="custom" KEY_LABEL="DeepSeek API Key" @@ -877,7 +879,7 @@ else ;; *) echo -e " ${YELLOW}未知选项,使用默认 DeepSeek${NC}" - MODEL_NAME="deepseek-chat" + MODEL_NAME="deepseek-v4-flash" BASE_URL="https://api.deepseek.com/v1" PROVIDER="custom" KEY_LABEL="DeepSeek API Key" diff --git a/portable/Config.html b/portable/Config.html index 02d6d98..dc0dd25 100644 --- a/portable/Config.html +++ b/portable/Config.html @@ -170,10 +170,10 @@ input:focus { border-color: #ff6b35; }

一个 Key 用 DeepSeek / Claude / GPT / 通义 等国内外全部大模型,无需翻墙

→ 注册 / 充值 / 获取 API Key -
+

DeepSeek 国内便宜

-

deepseek-chat / deepseek-v4,超低价格

+

deepseek-v4-flash / deepseek-v4-pro,超低价格

→ 获取 API Key
diff --git a/portable/Mac-Menu.command b/portable/Mac-Menu.command index a524789..56e2501 100755 --- a/portable/Mac-Menu.command +++ b/portable/Mac-Menu.command @@ -107,7 +107,7 @@ do_config() { echo "" echo -e " DeepSeek → 选 Custom Provider" echo -e " URL: https://api.deepseek.com/v1" - echo -e " 模型: deepseek-chat" + echo -e " 模型: deepseek-v4-flash" echo -e " Kimi → 选 Moonshot AI" echo -e " 通义千问 → 选 Qwen" echo -e " 豆包 → 选 Volcano Engine" diff --git a/portable/config-server/public/index.html b/portable/config-server/public/index.html index 3ea426d..c6c98ea 100644 --- a/portable/config-server/public/index.html +++ b/portable/config-server/public/index.html @@ -199,10 +199,10 @@ input:focus { border-color: #ff6b35; }

moonshot-v1-auto,智能选模型

→ 获取 API Key
-
+

DeepSeek 国内便宜

-

deepseek-chat,超低价格

+

deepseek-v4-flash,超低价格

→ 获取 API Key
diff --git a/portable/skills-cn/deepseek-helper/SKILL.md b/portable/skills-cn/deepseek-helper/SKILL.md index a589547..c2f7a49 100644 --- a/portable/skills-cn/deepseek-helper/SKILL.md +++ b/portable/skills-cn/deepseek-helper/SKILL.md @@ -10,7 +10,7 @@ metadata: { "openclaw": { "emoji": "🤖" } } ## 功能概述 -- **模型选择指南**: deepseek-chat vs deepseek-coder 的使用场景对比 +- **模型选择指南**: deepseek-v4-flash vs deepseek-v4-pro 的使用场景对比 - **API 调用示例**: 提供 Python、curl、Node.js 等语言的调用代码 - **定价计算**: 根据 token 用量估算费用(输入 ¥1/百万tokens,输出 ¥2/百万tokens) - **Prompt 优化**: 针对 DeepSeek 模型特性优化提示词 @@ -20,9 +20,12 @@ metadata: { "openclaw": { "emoji": "🤖" } } | 模型 | 适用场景 | 上下文长度 | |------|---------|-----------| -| deepseek-chat | 日常对话、文案写作、知识问答 | 32K | -| deepseek-coder | 代码生成、代码审查、技术文档 | 16K | -| deepseek-reasoner | 复杂推理、数学、逻辑分析 | 64K | +| deepseek-v4-flash | 日常对话、文案写作、知识问答,快且便宜 | 128K | +| deepseek-v4-pro | 复杂推理、数学、代码生成与审查 | 128K | + +> ⚠️ 旧名 `deepseek-chat` / `deepseek-coder` / `deepseek-reasoner` 已下线, +> api.deepseek.com 现在只接受 `deepseek-v4-flash` 和 `deepseek-v4-pro`, +> 用旧名调用会直接返回 HTTP 400。 ## 使用示例 @@ -33,7 +36,7 @@ metadata: { "openclaw": { "emoji": "🤖" } } ### 模型选择 ``` -我要做一个客服机器人,应该用 deepseek-chat 还是 deepseek-coder? +我要做一个客服机器人,应该用 deepseek-v4-flash 还是 deepseek-v4-pro? ``` ### 费用估算 @@ -49,7 +52,7 @@ metadata: { "openclaw": { "emoji": "🤖" } } ## 适用场景 - 首次接入 DeepSeek API 的开发者 -- 需要在 deepseek-chat 和 deepseek-coder 之间做选择 +- 需要在 deepseek-v4-flash 和 deepseek-v4-pro 之间做选择 - 想要优化 API 调用成本 - 排查 API 调用问题 - 需要快速生成 API 调用代码片段 diff --git a/u-claw-app/resources/Config.html b/u-claw-app/resources/Config.html index 1b44e7d..19cd9b1 100644 --- a/u-claw-app/resources/Config.html +++ b/u-claw-app/resources/Config.html @@ -170,10 +170,10 @@ input:focus { border-color: #ff6b35; }

一个 Key 用 DeepSeek / Claude / GPT / 通义 等国内外全部大模型,无需翻墙

→ 注册并获取 API Key
-
+

DeepSeek 国内便宜

-

deepseek-chat / deepseek-v4,超低价格

+

deepseek-v4-flash / deepseek-v4-pro,超低价格

→ 获取 API Key