xyooyx
V2EX  ›  DeepSeek

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

  •  
  •   xyooyx · May 29 · 748 views
    This topic created in 48 days ago, the information mentioned may be changed or developed.

    问题表现为

    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/[email protected] --force
    

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

    1 replies    2026-05-29 12:41:45 +08:00
    a33291
        1
    a33291  
       May 29   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1004 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:33 · PVG 06:33 · LAX 15:33 · JFK 18:33
    ♥ Do have faith in what you're doing.