关于claude code cli使用第三方模型出现: API Error: 400 The `content[].thinking` in the thinking mode...问题
近期由于Claude Code更新了新的版本(2.1.156),使用第三方模型出现: API Error: 400 The content[].thinking in the thinking mode must be passed back to the API.的问题,目前我已通过以下方案修复:
▼js复制代码1.关闭所有的claude运行窗口 2.打开终端卸载当前版本,npm uninstall -g @anthropic-ai/claude-code 3.回退版本至150(当前会自动更新版本至156),npm install -g @anthropic-ai/claude-code@2.1.150 4.验证版本,claude --version 5.注意不要进入claude,要先关闭自动更新,否则进入claude后会直接自动更新 6.打开C:\Users\具体用户\.claude 7.找到settings.json,并点击编辑,加入以下配置:

▼js复制代码"DISABLE_AUTOUPDATER":1, "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1" "autoUpdates": false,
注意"DISABLE_AUTOUPDATER":1, 的上一行配置需要加上英式逗号 保存后即可打开!
本方案来源于网络并经过整理
评论
相关内容
0个评论
全部评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
