xyooyx
V2EX  ›  DeepSeek

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

  •  
  •   xyooyx · 1 day ago · 363 views

    问题表现为

    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  
       1 day ago
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:04 · PVG 04:04 · LAX 13:04 · JFK 16:04
    ♥ Do have faith in what you're doing.