content[].thinking must be passed back to the API:Claude Code
Quick fix
可临时关闭自动升级并将 Claude Code 降级到 2.1.150;该问题是否由 cc-switch 修复,原帖没有确认。
Symptom
Section titled “Symptom”API Error: 400 The `content[].thinking` in the thinking mode must be passed back to the API.报告称 DeepSeek V4 配合 Claude Code 在更新至 v2.1.153 后,首轮工具调用后的后续请求出现此错误;另有用户称 Claude Code v2.1.119 不会触发。帖子中有人推测 thinking 块在协议转换或后续请求中未被保留,但也有回复认为这是 DeepSeek 原生 Anthropic 接口尚未适配新版 Claude Code,而非 cc-switch 代理问题。原帖未确认根因或正式修复状态。
一名用户反馈降级 Claude Code 后问题得到绕过;另有反馈称问题后来未再复发。升级到 2.1.154 后还出现过不同的 JSON 反序列化 400 错误,属于同一升级背景下的变体,但原帖未提供其可验证解法。
作为用户报告的临时绕过方案,关闭 Claude Code 自动升级,并安装指定的 2.1.150 版本。
运行 `npm install -g @anthropic-ai/claude-code@2.1.150` 后,重新测试多轮工具调用;原帖未确认 cc-switch 更新可解决此问题。
Affected Versions
Section titled “Affected Versions”ToolClaude Code
Version2.1.153(报告的受影响版本)
PlatformsWindows
Source Issues
Section titled “Source Issues”本页汇总自 1 个真实 issue
- 如何回归 Claude Code 版本?需要先卸载当前版本吗,如何安装指定版本或关闭自动升级?
- 线程中给出的临时方案是关闭自动升级,并执行 `npm install -g @anthropic-ai/claude-code@2.1.150`。是否需要先卸载当前版本,原帖未说明。
- cc-switch 可以通过更新解决这个问题吗?
- 原帖没有确认 cc-switch 的正式修复;讨论中对根因是否位于 cc-switch 存在分歧。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。