For example, you may encounter this issue when using Deepseek with Claude Code:
API Error: 400 Failed to deserialize the JSON body into the target type: messages[1].role: unknown variant system, expected user or assistant at line 1 column 489
This problem occurs because the new version of Claude Code has added new parameters, leading to compatibility issues with many models.
Downgrade Claude Code to version 2.1.153 to resolve the issue.
← Back to Articles