问题描述:
DeepSeek 于 2026年4月24日发布了 V4 系列模型(deepseek-v4-pro / deepseek-v4-flash)。在 WorkBuddy 自定义模型配置中添加 V4 模型后,调用时报以下错误:
Error Code: 400
Message: The `reasoning_content` in the thinking mode must be passed back to the API.原因分析:
DeepSeek V4 默认开启思考模式(thinking mode),API 返回中会包含 reasoning_content 字段。根据 DeepSeek 官方文档(https://api-docs.deepseek.com/zh-cn/guides/thinking_mode):
reasoning_content 必须在后续所有轮次中完整回传给 APIWorkBuddy 在处理 DeepSeek 供应商的 tool call 时,似乎没有正确保存和回传 reasoning_content 字段,导致后续请求缺少该字段。
复现步骤:
环境信息:
临时解决方案:
supportsReasoning 设为 false 无法绕过(客户端可能硬编码了思考模式处理)期望: 希望 WorkBuddy 尽快适配 DeepSeek V4 的 reasoning_content 回传逻辑,否则 7 月旧模型下线后将无法使用 DeepSeek。
相似问题