codex - 💡(How to fix) Fix Bug: auto-review uses hardcoded model name "codex-auto-review", incompatible with custom providers

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash,

Fix Action

Fix / Workaround

临时 Workaround

Code Example

model_provider = "custom"
model = "deepseek-v4-pro"

[model_providers.custom]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "http://localhost:3000/v1"

---

"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash,
but you passed codex-auto-review.","type":"invalid_request_error"}
RAW_BUFFERClick to expand / collapse

Bug: auto-review 使用硬编码模型名 "codex-auto-review",与自定义 provider 不兼容

环境

  • Codex 版本: Codex Desktop (macOS)
  • 配置: 使用自定义 model provider(DeepSeek v4),base_url = "http://localhost:3000/v1"

配置 (config.toml)

model_provider = "custom"
model = "deepseek-v4-pro"

[model_providers.custom]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "http://localhost:3000/v1"

问题描述

当使用自定义 model provider(如 DeepSeek)时,Codex 的 sandbox auto-review(自动审批) 功能会向配置的 base_url 发送请求,但请求中的 model 字段值为硬编码的 "codex-auto-review",而非用户在 config.toml 中配置的模型名。

由于自定义 provider(如 DeepSeek API)只识别 deepseek-v4-pro / deepseek-v4-flash,请求被拒绝:

"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash,
but you passed codex-auto-review.","type":"invalid_request_error"}

影响

所有 require_escalated 的 sandbox 命令(如 git clone、网络请求等)都无法通过自动审批,即使这些命令本身是安全的

预期行为

auto-review 应使用用户配置的模型名(config.toml 中的 model 字段),或者允许用户在配置中单独指定 auto-review 使用的模型。

临时 Workaround

在 Codex 内部代理(ccx-darwi:3000)前插入一层中间代理,将 codex-auto-review 映射为用户配置的模型名。

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING