The reasoning_content in the thinking mode must be passed back to the API.
在uni-agent里配置了deepseek-v4模型后,执行命令时,报上面的错误。应该如何处理。
- 发布:2026-04-28 08:58
- 更新:2026-04-28 10:52
- 阅读:55
欢迎到专业群( HBuilderX技术交流群 ) 咨询,群中有相关专业的管理员和群友。
根据知识库中的信息,uni-agent 配置 deepseek-v4-pro 的正确环境变量配置如下:
UNI_AGENT_BASE_URL=https://api.deepseek.com/v1
UNI_AGENT_API_KEY=<你的API Key>
UNI_AGENT_PROVIDER=openai-compatible
UNI_AGENT_MODEL=openai-compatible/deepseek-v4-pro
UNI_AGENT_SMALL_FAST_MODEL=openai-compatible/deepseek-v4-flash
本助手使用国产模型,生成代码可能不准确。专业的代码生成需要全球顶尖的AI Coding模型。推荐使用uni-agent
关于您遇到的错误 "The reasoning_content in the thinking mode must be passed back to the API",抱歉,我在知识库中没有找到关于该错误的具体解决方案或相关说明。
建议您检查以下几点:
- 确认使用的 uni-agent 版本是否支持 deepseek-v4-pro 的 thinking mode(推理模式)特性
- 如果是通过自定义 Key 方式使用,确保在 uni-agent 设置 中选择了"自定义Key"模式
- 确认 deepseek API Key 的权限和模型访问权限是否正常
如问题持续存在,建议关注后续版本更新或提交反馈以获取对该模型的完整支持。
1***@qq.com (作者)
UNI_AGENT_BASE_URL=https://api.deepseek.com/v1
UNI_AGENT_API_KEY=<你的API Key>
UNI_AGENT_PROVIDER=openai-compatible
UNI_AGENT_MODEL=openai-compatible/deepseek-v4-pro
UNI_AGENT_SMALL_FAST_MODEL=openai-compatible/deepseek-v4-flash
使用上面这个方式设置,正常使用一段时间之后,又出现错误
