Files
CLIProxyAPI/sdk
Luis Pater 249ea68d71 fix(gemini): emit Google RPC APIError JSON for post-commit SSE stream errors
- 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
2026-11-27 22:06:22 +08:00
..