跳转到内容

API Error: 400 Param Incorrect Claude Code 接入小米Mimo

Quick fix

升级 CC Switch 到 v3.16.2 或更新版本,修复 MiMo thinking mode 下 reasoning_content 未回传导致的 400 错误。

报错原文
Param Incorrect: The reasoning_content in the thinking mode must be passed back to the API.

小米 MiMo 的 OpenAI-compatible 接口在 thinking mode 下要求:后续请求必须把上一轮 assistant 返回的 `reasoning_content` 原样传回。CC Switch 的 Claude Desktop 3P / Claude Code 转换链路此前未对 `mimo`/`xiaomimimo` 保存并回传该字段,因此在多轮对话、tool call 或 thinking continuation(`effort=high`/`max` 时更易出现)后会被上游拒绝,返回 `400 Param Incorrect`。用户在 `proxy_request_logs.error_message` 中可看到参数为 `The reasoning_content in the thinking mode must be passed back to the API.`

官方已在 v3.16.0 通过 #2990 在 Claude Code proxy 路径增加 MiMo `reasoning_content` 支持,并把 `mimo`/`xiaomimimo` 加入 `reasoning_content` 保留白名单,同时为 `redacted_thinking` blocks 注入占位符;维护者在 #3074、#2952 中确认升级到 v3.16.2 或更新版本即可。

  1. 将 CC Switch 升级到 v3.16.2 或更新版本(MiMo `reasoning_content` 支持在 v3.16.0 合入)。

  2. 完全退出并重启 Claude Code / Claude Desktop,确保本地代理使用新版本转换链路。

  3. 若仍复现,请确认模型路由使用 `mimo-v2.5-pro` 或 `mimo-v2.5`,并重新打开原 issue 附带版本号、配置与复现步骤。

ToolClaude Code / Claude Desktop 3P
Version修复于 v3.16.0;请升级到 v3.16.2 或更新版本
PlatformsmacOS
小米的请求地址怎么填?
可参考本问题中的上游 `base_url`:`https://token-plan-sgp.xiaomimimo.com/v1`,但具体地址请以小米官方/供应商提供为准。
为什么首轮成功、多轮或 tool call 之后才报 400?
MiMo 在 thinking mode 下要求把上一轮 assistant 返回的 `reasoning_content` 原样传回;后续请求未回传时,上游返回 `Param Incorrect`。
模型填 `mimo-v2.5-pro` 对吗?
本问题中模型路由为 `claude-opus-4-7` -> `mimo-v2.5-pro`、`claude-sonnet-4-6` -> `mimo-v2.5`;有用户指出 `plan` 没有 flash 模型。
升级后仍报 `There's an issue with the selected model ... It may not exist or you may not have access to it.`?
这是 Claude Code 中同一问题的表现形式之一;确认已升级到 v3.16.2 并重启,若仍存在请重新打开 issue 并补充版本号、配置与复现步骤。

这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。