Files
CLIProxyAPI/internal
Luis Pater 07290e18da fix(translator): map upstream MAX_TOKENS to OpenAI finish_reason length
- Map upstream MAX_TOKENS to finish_reason "length" in the Antigravity and Gemini OpenAI Chat Completions translators (streaming and non-streaming), since "max_tokens" is not a valid OpenAI finish_reason and strict clients reject it.
- Keep native_finish_reason as the lowercased upstream value and preserve tool_calls precedence and content_filter handling, updating and adding regression test cases for each affected path.

Closes: #7463
Co-authored-by: Dylan <1990016@gmail.com>
Co-authored-by: lzt404 <2596933790@qq.com>
2026-11-12 16:21:38 +08:00
..
…