GoForum🌐 V2EX

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

xyooyx · 2026-05-29 11:48 · 0 次点赞 · 0 条回复

问题表现为

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

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

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: xyooyx
发布: 2026-05-29
点赞: 0
回复: 0