unsupported call: — Codex 工具调用失败
Quick fix
目前没有已确认修复;CC Switch 需在流式事件中保留 function_call 的 name 和 call_id。
Symptom
Section titled “Symptom”function_call_output: "unsupported call: "在通过 CC Switch 本地代理向 Xiaomi MiMo 发送带 tools 的流式 /v1/responses 请求时,response.output_item.added 事件中的 function_call.call_id 和 name 正确,但后续 response.output_item.done 及 response.completed 会将两项变为空字符串。Codex 从 done/completed 事件组装工具调用,因此会拒绝这些调用。
该问题报告发生在 CC Switch 3.20.4 的 Windows 11 环境。相同请求使用 stream: false 时字段完整,表明字段丢失发生在流式 SSE 聚合路径。该 issue 仍为 open,尚无已确认的修复方案。
将问题反馈给 CC Switch 维护者,并提供流式 SSE 捕获;报告建议在生成 output_item.done 和 response.completed 时,沿用 response.output_item.added 中已捕获的 call_id 与 name。
如调用方能够控制请求模式,可验证 stream: false 是否可避免该问题;但报告指出真实 Codex 会使用流式请求。
Affected Versions
Section titled “Affected Versions”ToolCodex
Version3.20.4(受影响报告版本)
PlatformsWindows
Source Issues
Section titled “Source Issues”(暂无 FAQ)
<thinking> 标签作为正文输出 Claude Code将 provider 的 apiFormat 从 openai_chat 改为 anthropic(若上游支持),可绕过内联 <thinking> 泄露。Select Model 菜单仍然显示切换前模型列表 - Codex关闭现有 Codex 会话后运行 `codex app-server daemon restart`;升级 CC Switch 至 v4.0.7 以上可获得旧目录检测与重启提示。设置的代理没有生效, 输入问题后,一致reconnect; Codexcc-switch 的“配置单独代理”功能已删除;请在 PowerShell 用 $env:http_proxy 设置代理后再运行 Codex。
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。