比如Claude Code 使用Deepseek 可能会遇到这个问题:
API 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 489
这是因为Claude Code新版新增了参数,很多模型兼容出现了问题。 Claude Code 回退版本到 2.1.153 即可。
← 返回文章列表