PR #3470 逐条核对了 27 家厂商,但有四处(五个 entry)的声明与厂商文档对不上, 其中一处在默认路径上就是错的。 1. DeepSeek:参考文档写明 "required and named tool choices are not supported in thinking mode; the API returns a 400 error",而 vendor.go 的事实注释写成 「plain OpenAI set」并因此没有配 tool_choice_modes,默认继承全集。现在只发 none / auto,和 Moonshot 同类限制的写法一致。compat 无法表达「仅思考模式下 受限」,而思考是 DeepSeek 的默认状态,所以不做条件区分。 2. 智谱 glm-5.2:官方对 GLM-5.2 的折叠规则是 none|minimal 放弃思考、low|medium 折成 high。models.json 却把 minimal 改写成 "low",发出去被平台折成 high, 用户选最弱档实际跑最高强度。删掉该覆盖,回落到厂商级的 minimal。 3-4. NVIDIA NIM:z-ai/glm-5.3 与 moonshotai/kimi-k3 配了 thinking_levels,却 沿用厂商默认的 chat-template-kwargs 编码——该分支只发 enable_thinking 布尔, 档位被整个丢弃,而前端仍按 capabilities 渲染出一个不起作用的档位选择器。 两个 entry 改为顶层 reasoning_effort。kimi-k3 的 NIM 卡片只写了 "configurable low, high, or max reasoning effort" 而未展示参数,按其第一方 API 的字段推定,已记入 Unverified。 5. 阿里云 qwen3.8:官方参数表写明「不支持 reasoning_effort 与 thinking_budget 同时设置,同时设置会报错」,vendor.go 的注释也记了这条,但 applyThinking 在 ThinkingBudgetTokens > 0 时无条件两个都写。新增 compat 键 thinking_budget_excludes_effort,冲突时档位优先、预算让路。 3 与 4 在当前默认路径上已经影响到档位;1 和 5 目前够不到(全仓库只有 agent/finalize.go 发 tool_choice="none",且没有任何地方给 ThinkingBudgetTokens 赋值),属于修掉的埋雷。2 是默认路径上的实际错误。 新断言做过反向验证:数据回滚到修改前,7 条 vendor 断言与新增的 golden 用例全部 报错。 |
||
|---|---|---|
| .. | ||
| icon.svg | ||
| models.json | ||
| vendor.go | ||