Files
CLIProxyAPI/internal/util
Luis Pater 9cc3ad8f7f fix(util): support allowed_tools tool_choice in OpenAI Responses to Gemini translation
- Add identity-based allowed_tools resolution shared by ConvertResponsesToolChoiceToGemini and FilterGeminiFunctionDeclarationsByResponsesToolChoice, enforcing exact namespace, local name, and tool-kind matching with fail-closed NONE fallbacks.
- Filter Gemini functionDeclarations in ConvertOpenAIResponsesRequestToGemini for allowed_tools while preserving the full forwardMap for historical tool-call replay.
- Add unit and request-level regression tests covering required/any/auto/none modes, namespace and tool_search entries, shadowing collisions, and kind mismatches.

Closes: #8215
2026-11-26 12:00:52 +08:00
..
2026-08-09 00:40:57 +08:00