codex报错解决 Error loading config.toml: `wire_api = “chat“` is no longer supported
1. 引入根据参考1将“阿里云百炼Coding Plan”接入codex配置完成后启动codex时报错如下(base) C:\Users\xxxcodex Error loading config.toml: wire_api chat is no longer supported. How to fix: set wire_api responses in your provider config. More info: https://github.com/openai/codex/discussions/7782 in model_providers.Model_Studio_Coding_Plan.wire_api该报错的原因是因为较新版本codex比如 0.123.0 已经不支持“阿里云百炼Coding Plan”的API的这种用法了。如果强行将C:\Users\xxx\.codex\config.toml中的配置修改wire_api responses则也会报错unexpected status 404 Not Found: Unknown error, url: https://coding.dashscope.aliyuncs.com/v1/responses2. 解决方法这个问题本质上是“阿里云百炼Coding Plan”的API不支持codex新版本的用法。所以将codex降级后就能使用具体方法npm install -g openai/codex0.80.0降级到 0.80.0将C:\Users\xxx\.codex\config.toml中的配置设置wire_api chat。codex启动后也会报警如下但不影响实际使用⚠ Support for the chat wire API is deprecated and will soon be removed. Update your model provider definition in config.toml to use wire_api responses.参考https://help.aliyun.com/zh/model-studio/codex-coding-plan