fix: 修复opencode 适配openai 套餐的错误,通过sub2api完美转发 opencode #269
+606
−29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

fix(网关): 修复工具续链校验与存储策略
fix(网关): 补齐Codex指令回退与输入过滤
完善 function_call_output 续链校验与引用匹配
续链场景强制 store=true,过滤 input 时避免副作用
补充续链判断与过滤相关单元测试
错误日志:
sub2api | 2026/01/13 14:46:53 OpenAI upstream error 400 (account=1 platform=openai type=oauth): {\n "error": {\n "message": "No tool call found for function call output with call_id call_gu9qHxCzZdOYoSpeUSz32uAx.",\n "type": "invalid_request_error",\n "param": "input",\n "code": null\n }\n}
sub2api | 2026/01/13 14:46:53 Account 1: Forward request failed: upstream error: 400 message=No tool call found for function call output with call_id call_gu9qHxCzZdOYoSpeUSz32uAx.
sub2api | 2026/01/13 14:46:53 [GIN] 2026/01/13 - 14:46:53 | 502 | 503.868457ms | 10.0.0.2 | POST /v1/responses
sub2api | 2026/01/13 14:46:54 [DeferredService] BatchUpdateLastUsed flushed 4 accounts