mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-17 15:20:55 +08:00
- 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>