今天使用 deepseek-v4-pro 的 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
'''
是因为 deepseek 不支持 system role 了吗?
今天使用 deepseek-v4-pro 的 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
'''
是因为 deepseek 不支持 system role 了吗?
1
longaiwp 7h 43m ago
回退版本到 153 就行了,新版有兼容性问题
|
2
YJi 7h 41m ago
刚降完 又给我自动升级了..
|
3
TimPeake 7h 20m ago
应该格式兼容。估计 deepseek 那边会处理。GLM 没问题
|
4
SeanSherwood OP 多谢,刚开始用,没想到自动更新了
|
5
SeanSherwood OP @TimPeake 是版本问题,deepseek 无法使用,回退版本解决了
|
6
SeanSherwood OP |
7
YJi 7h 5m ago
@SeanSherwood #6 感谢
|
8
Mjhhh 7h 2m ago
|
9
cecil2016 6h 46m ago
|
10
utodea 6h 18m ago
|