API Error: 400 Request body format invalid

今天使用Claude code报下面错误

复制代码
(base) aneirin@xuliat14p:~$ claude 
 ▐▛███▜▌   Claude Code v2.1.154
▝▜█████▛▘  qwen3.6-plus with high effort · API Usage Billing
  ▘▘ ▝▝    ~/claudeEverything/awssaa


❯ 你是什么模型                                                                                                                                                                               
  ⎿  API Error: 400 Request body format invalid

✻ Brewed for 0s

出问题前,我没有做任何操作。因为Claude code的默认升级模式是开启的,

复制代码
(base) aneirin@xuliat14p:~$ claude doctor

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Diagnostics
  ├ Currently running: native (2.1.154)
  ├ Commit: daa4c3755d45
  ├ Platform: linux-x64
  ├ Path: /home/aneirin/.local/share/claude/versions/2.1.154
  ├ Config install method: native
  └ Search: OK (bundled)

  Updates
  ├ Auto-updates: enabled
  ├ Auto-update channel: stable
  ├ Stable version: 2.1.145
  └ Latest version: 2.1.156
  
  Background server
  └ Status: not running
  └ Mode: ephemeral
  └ See claude daemon status for details
  
  Still having issues? Run /feedback to report details.
  
  Enter to continue

推测可能是自动升级导致,基于这个推测,降级Claude code到稳定版"2.1.145"

复制代码
# 降级Claude code到稳定版2.1.145
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.145

# 关闭自动升级
vim ~/.claude/settings.json
{
  "env": {
    "DISABLE_AUTOUPDATER": "1"
  }
}

查看已经降级成功,

复制代码
(base) aneirin@xuliat14p:~$ claude --version
2.1.145 (Claude Code)

如果还是显示原来的版本,可以手动使用下面命令处理,

复制代码
# 人为指向需要降级的版本
ln -sf ~/.local/share/claude/versions/2.1.154 ~/.local/bin/claude

降级后,再次运行,恢复正常。

复制代码
(base) aneirin@xuliat14p:~$ claude 
 ▐▛███▜▌   Claude Code v2.1.145
▝▜█████▛▘  qwen3.6-plus with high effort · API Usage Billing
  ▘▘ ▝▝    ~/claudeEverything/awssaa

❯ 你使用什么模型                                                                                                                                                                             

● 我使用的是 Qwen 3.6 Plus 模型。
  
✻ Crunched for 3s
相关推荐
ai小陈12 小时前
GPU算力平台远程训练监控:TensorBoard与SSH隧道配置实战
运维·人工智能·深度学习·ai·ssh·gpu算力
cuijiecheng201812 小时前
RK3588 DEP 接入 Dante Domain Manager(DDM)完整测试记录
linux
爱吃香菜的初学者12 小时前
十二.Linux——管道
linux·运维·服务器
小此方12 小时前
LangChain/LangGraph(一)提示词篇一:Prompt工程实战:从CO-STAR、Few-Shot到思维链与自我迭代,系统掌握提示词设计方法
ai·langchain·prompt
User_芊芊君子14 小时前
一张手写菜单,我用 Seed-2.1-pro-0915 开了一家数字咖啡馆
ai·大模型·aigc
网硕互联的小客服20 小时前
Linux服务器磁盘应该如何合理分区?
linux·运维·服务器
贵沫末1 天前
Ubuntu——常用软件安装
linux·运维·ubuntu
Doraemomo1 天前
Linux内核驱动开发——中断与定时器
linux·运维·驱动开发
白萝卜弟弟1 天前
【大模型Qwen3.8 27B】llama.cpp 本地大模型部署与使用
ai·大模型·agent·llama·qwen3.8
2301_808414381 天前
Linux中动静态库的理解
linux·运维·服务器