[DeepSeek] claude code 2.1.154 的 "Lean System Prompt Now Default" 和现有 deepseek 的 anthropic 格式不兼容

问题表现为 API Error: 400 Failed to deserialize the JS0N body into the target type:messages[1] .role: unknown variant'system', expected 'user'or 'assistant...
[DeepSeek] claude code 2.1.154 的 "Lean System Prompt Now Default" 和现有 deepseek 的 anthropic 格式不兼容
[DeepSeek] claude code 2.1.154 的 "Lean System Prompt Now Default" 和现有 deepseek 的 anthropic 格式不兼容

问题表现为

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

暂时通过降级兼容性使用

npm install -g @anthropic-ai/claude-code@2.1.153 --force

这个问题不知道近期是否会被优化

来源: v2ex查看原文