loading config.toml: `wire_api = "chat"` is no longer supported. How to fix: set...
错误信息
PS H:\Codex> codex
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.dmx.wire_api`
PS H:\Codex>
AI 解决方案
报错分析报告
1.错误翻译
原文:Error loading config.toml: `wire_api = "chat"` is no longer supported.
译文:加载config.toml时出错:`wire_api = "chat"`不再被支持。
2.原因分析
wire_api = "chat"参数值。 model_providers.dmx.wire_api字段(provider配置内)。3. 解决方案
修改
config.toml中对应字段的值为"responses": [model_providers.dmx]
wire_api = "responses" # 替换原"chat"值
4. 预防措施
tomsk for TOML)在提交前检查语法与兼容性。 ---
按上述步骤修改配置即可解决报错。