Codex CLI 用 ~/.codex/config.toml 定义 model_providers,但 wire_api 写 responses 还是 chat 决定了请求走哪个端点——选错就是 404/400。这篇给完整配置模板、两种取值的判据、项目级配置优先级,和三个真坑。