unexpected status 404 Not Found: Unknown error - Codex
Quick fix
DeepSeek 官方不支持 Responses API,请在配置中将 base_url 加上 /v1,并删除 wire_api = "responses" 设置。
Symptom
Section titled “Symptom”unexpected status 404 Not Found: Unknown error, url: https://api.deepseek.com/responses当在 Codex 中使用 DeepSeek 模型时,如果配置文件中将 `wire_api` 设置为 `responses`,Codex 会尝试请求 DeepSeek 的 `/responses` 接口。由于 DeepSeek 官方并不支持 Responses API,因此会直接返回 404 Not Found 错误。
打开 Codex 的配置文件(通常位于 `~/.codex/config.toml`)。
找到 `[model_providers.custom]` 部分,将 `base_url` 的值修改为包含 `/v1` 的完整地址,并删除 `wire_api = "responses"` 这一行。
如果修改后仍然报错,请在 cc-switch 中删除当前的 DeepSeek 预设,并重新添加配置,确保使用标准的 OpenAI 兼容接口而非 Responses API。
Affected Versions
Section titled “Affected Versions”ToolCodex
Version26.429.30905
PlatformsWindows
Source Issues
Section titled “Source Issues”本页汇总自 2 个真实 issue
- DeepSeek 支持 Responses API 吗?
- 不支持。DeepSeek 官方仅提供标准的 OpenAI 兼容接口,没有 response 接口。
- 为什么删除 config.toml 重新配置后依然报 404 错误?
- 因为重新生成的配置文件中可能仍然默认包含了 `wire_api = "responses"`。你需要手动修改 `base_url` 并移除该字段,或者在 cc-switch 中彻底删除错误预设后重新设置。
api failed deserialize json body into按错误类型回退 Claude Code、升级 cc-switch、关闭本地代理或停止发送不支持的字段。API Error: 400 Param Incorrect Claude Code升级 CC Switch 到 v3.16.2 或更新版本,修复 MiMo thinking mode 下 reasoning_content 未回传导致的 400 错误。Request body format invalid 报错 Claude Code升级 cc-switch 并开启 Rectifier 整流器,或添加环境变量 MAX_THINKING_TOKENS=0 以兼容第三方 API 格式。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。