跳转到内容

The `reasoning_content` in the thinking mode must be passed back to the API. Codex

Quick fix

将 DeepSeek 配置为原生模式而非默认;若仍失败,在 Codex 中将 model_reasoning_effort 设为 none。

报错原文
CC Switch local proxy failed while handling Codex endpoint /responses. Provider: DeepSeek; model: deepseek-v4-flash; upstream_status: HTTP 400; cause: The `reasoning_content` in the thinking mode must be passed back to the API.

Codex 在 thinking 模式的后续请求中会携带 reasoning 项。经 CC Switch 本地代理转换为 DeepSeek chat 接口时,上游要求将 `reasoning_content` 原样回传;未满足该要求时会返回 HTTP 400,随后 Codex 可能出现 stream broken。

已有用户确认,将 DeepSeek 的高级选项从默认改为原生模式可以解决。另有在 CC Switch 3.16.5 上复现的报告表明,单纯升级未必有效;将 Codex 的 reasoning effort 关闭后,多轮工具调用不再触发该错误。

  1. 在 CC Switch 的 DeepSeek 配置高级选项中,如供应商提供原生模式,选择原生模式,不要使用默认模式。

  2. 若原生模式后仍在多轮工具调用中报错,关闭 Codex 的 reasoning effort。

    ~/.codex/config.toml
    model_reasoning_effort = "none"
ToolCodex
Version未知
PlatformsWindows
有没有解决方案啊?
可先在 DeepSeek 配置的高级选项中选择原生模式;若仍失败,可在 `~/.codex/config.toml` 中设置 `model_reasoning_effort = "none"`。
具体是在哪里修改啊 没有找到
已确认的设置位置是 CC Switch 中该供应商配置的高级选项;issue 未提供更具体的界面路径。

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