Files
CLIProxyAPI/internal/translator
Luis Pater 8c984672a6 feat(translator): handle orphan function outputs as user text in OpenAI and Gemini translators
- Introduce logic to convert orphaned or unpaired `function_call_output` into user text instead of mismatched tool responses.
- Add `buildOpenAIResponsesStandaloneToolOutputTextParts` and `appendStandaloneResponsesToolOutputAsUser` helpers for managing orphaned outputs.
- Update OpenAI, Gemini, and Antigravity translators to ensure unmatched tool outputs are surfaced correctly.
- Add comprehensive test cases for both Gemini and OpenAI translator workflows to validate behavior for orphan function outputs and explicit call IDs.

Closes: #5831
2026-09-15 03:26:12 +08:00
..