mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-28 21:03:34 +08:00
- Replace OpenAI-formatted event: error frames in GeminiAPIHandler.forwardGeminiStream with single-line Google RPC error JSON payloads carrying integer code, message, and status fields for google.golang.org/genai compatibility. - Preserve existing upstream Google RPC error details when present and normalize plain-text or non-Gemini JSON error payloads into valid Google RPC error objects. - Update pre-first-token keep-alive failure assertions and add regression tests covering post-commit SSE errors and post-thought Antigravity MALFORMED_FUNCTION_CALL termination. Closes: #8547