mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-16 15:43:13 +08:00
OpenAI OAuth 转发续链请求时,function_call 等 call-input 类 item 的 id 被客户端以 item_* 形式回放,但上游要求以 fc 开头,返回 400 "Expected an ID that begins with 'fc'",导致工具续链反复失败。 filterCodexInputWithOptions 在 PreserveReferences=true 路径下对 call-input 类 item(function_call/tool_call/local_shell_call 等) 增加 id 前缀检查:非 fc 开头即删除。output 类(function_call_output 等)的 id 无此约束,不动。 Fixes #3785