[Bug] v3.11.2 deepseek-flash(09-10 新 GA 名)推理档位错误:只能开启/关闭,旧内测名反而有 高/最高
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
环境 / 版本
- ZCode 3.11.2(Windows 桌面端)
- 系统:Windows 11 (10.0.26200)
- 通道:自定义 provider,kind=anthropic,baseURL=https://api.deepseek.com/anthropic(Anthropic 兼容端点)
问题描述
ZCode 3.11.2 对 DeepSeek 新 GA 名 deepseek-flash(2026-09-10 官方改名,替代 deepseek-v4-flash)的推理档位判定错误:只能选「开启/关闭」;而旧内测名 deepseek-v4.1-flash-expires-on-0910 反而能选「高/最高」。
根因在客户端内置能力表按模型名前缀/关键字匹配(resources/glm/zcode.cjs 中两条规则):
- deepseek-v4-thinking-depth:模型名以 deepseek-v4 开头 → 档位 ["high","max"](默认 max,无 off)
- deepseek-thinking-toggle:名字含 deepseek 且不匹配上一条 → 只能 ["enabled","disabled"],且「开启」只发 thinking:{type:"enabled",budgetTokens:1024}(不带 effort,服务端取默认 high)
09-10 官方改名去掉 v4 前缀后,deepseek-flash 掉进第二条规则,档位比旧内测名更少,且两者都不是 API 的真实能力集。
复现步骤
- 加自定义 provider:kind=anthropic,baseURL=https://api.deepseek.com/anthropic,填 DeepSeek API key
- 在该 provider 下添加模型 deepseek-flash 与 deepseek-v4.1-flash-expires-on-0910
- 在输入框右下角「思考级别」选择器里分别选中这两个模型
- 观察可选档位
期望表现
两个模型名都应对应 DeepSeek 官方文档定义的能力集:「关闭 / 低 / 高 / 最高」——即 thinking.type: disabled 与 output_config.effort ∈ {low, high, max}(默认 high)。
实际表现
- deepseek-v4.1-flash-expires-on-0910(带 v4 前缀)→ 只能选 高/最高,无法关闭思考
- deepseek-flash(官方 GA 名)→ 只能选 开启/关闭,无法选 低/最高
直连 API 实测(同一 Anthropic 兼容端点,均返回 200):
- deepseek-flash + thinking:{"type":"disabled"} → 响应无 thinking 块(可关闭)
- deepseek-flash + output_config:{"effort":"high"} → 正常思考
- 旧内测名 + thinking:{"type":"disabled"} / effort:"low" / effort:"max" → 均 200
即 API 侧支持全部档位,是客户端能力表/UI 未提供。
证据(本次零附件,仅文字)
- 客户端规则名(resources/glm/zcode.cjs 内文本):deepseek-v4-thinking-depth(匹配 modelId 以 "deepseek-v4" 开头 → levels ["high","max"]);deepseek-thinking-toggle(匹配名字含 "deepseek" 且不匹配前者 → levels ["enabled","disabled"])
- 官方文档 https://api-docs.deepseek.com/zh-cn/guides/thinking_mode/ :思考开关 thinking.type = enabled/disabled,强度 output_config.effort = low|high|max(默认 high),无「某模型不可关闭思考」的说明
- 官方更新日志 2026-09-10:模型名改为 deepseek-flash;deepseek-v4-flash、deepseek-v4-flash-vision-exp 已下线(临时兼容路由)
相关 issue
#306(自定义 provider 的 reasoning 参数注入)、#339(thought-level 变更被静默丢弃)——本问题是能力表/档位集合层面的,与二者相邻但不重复。
建议修复
能力匹配除 deepseek-v4* 外应同时识别 deepseek-flash;该家族补齐 off 档位(thinking:{type:disabled})并放行 low/high/max 三档。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in resources/glm/zcode.cjs by reading the deepseek-v4-thinking-depth and deepseek-thinking-toggle capability rules. Reproduce the selector with deepseek-flash and deepseek-v4.1-flash-expires-on-0910 through a custom Anthropic-compatible provider, then verify that both models expose disabled, low, high, and max options and send the documented values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100