报错具体文本:

PI Error: 400 Failed to deserialize the JSON body into the target type: messages[1].role: unknown variant system, expected user or assistant at line 1 column 1044

​​​​​​​Claude Code 使用 DeepSeek 出现 API Error 400 错误的解决方案_综合开发_威易网

尝试用CMD直接让模型纠错,结果无效,血泪教训:不要轻易改.claude的setting.json。

然后看到了上述这篇文章,原来是claude更新的问题。

vscode的插件可以install specific version

选2.1.153的版本下载后记得restart插件,或者退出vscode再重新打开。

另外cc对话右上角的fork和rewind功能慎用,我觉得不是很稳定。

更多推荐