mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-10 01:51:30 +08:00
- Ensure Gemini, AI Studio, Vertex, and Antigravity requests end with a user turn to prevent upstream errors when trailing with model content. - Preserve trailing turns that contain a function response and skip trailing adjustments for `countTokens` actions or Claude models. - Introduce boundary normalization helpers to validate both leading and trailing turn roles. Closes: #5358