Environment
Error
API Error: 400 - messages[1].role: unknown variant system, expected user or assistant
Cause
SDK 0.3.154 puts system role into the messages array, but DeepSeek's /anthropic
endpoint only supports system as a top-level field, not inside the messages array.
Previous working version
0.36.1 (SDK 0.3.143) - works correctly
Note
Claude Code CLI (v2.1.150) with the same DeepSeek endpoint works fine,
suggesting the issue is specific to how claude-agent-acp constructs messages.
Environment
Error
API Error: 400 - messages[1].role: unknown variant
system, expecteduserorassistantCause
SDK 0.3.154 puts
systemrole into the messages array, but DeepSeek's /anthropicendpoint only supports system as a top-level field, not inside the messages array.
Previous working version
0.36.1 (SDK 0.3.143) - works correctly
Note
Claude Code CLI (v2.1.150) with the same DeepSeek endpoint works fine,
suggesting the issue is specific to how claude-agent-acp constructs messages.