CC Switch local proxy failed while handling Codex endpoint /responses. Provider:...
错误信息
CC Switch local proxy failed while handling Codex endpoint /responses. Provider: Cubence Codex; model: gpt-5-codex; upstream_status: HTTP 400; cause: Model 'gpt-5-codex' is not supported. Please check available models at /dashboard/model-plaza
AI 解决方案
原文:CC Switch local proxy failed while handling Codex endpoint /responses. Provider: Cubence Codex; model: gpt-5-codex; upstream_status: HTTP 400; cause: Model 'gpt-5-codex' is not supported. Please check available models at /dashboard/model-plaza
译文:CC Switch 本地代理在处理 Codex 端点 /responses 时失败。提供商:Cubence Codex;模型:gpt-5-codex;上游状态:HTTP 400;原因:“gpt-5-codex”模型不被支持。请在 /dashboard/model-plaza 查看可用模型。
🎯 原因分析
请求中使用的模型
gpt-5-codex 在提供商 Cubence Codex 上并不存在或未启用,上游返回 HTTP 400 错误,导致代理无法正确转发请求。💡 解决方案
检查 /dashboard/model-plaza 页面,获取 Cubence Codex 提供商当前支持的模型列表,将请求中的
gpt-5-codex 替换为列表中的有效模型名称。例如:
# 修复后的代码(假设支持的模型为 gpt-4o)
payload = {
"model": "gpt-4o", # 改为可用的模型名称
"messages": [...],
...
}