mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-29 21:33:01 +08:00
- Replace ": keep-alive\n\n" SSE comment heartbeats with empty SSE frames ("\n\n") across Gemini streamGenerateContent and Interactions streaming endpoints to stay compatible with google.golang.org/genai.
- Override StreamForwardOptions.WriteKeepAlive in forwardGeminiStream and forwardInteractionsStream so mid-stream pauses and continuity waits emit empty SSE frames without affecting other protocols.
- Update Gemini pre-first-token keep-alive assertions and add regression tests covering pre-first-token and mid-stream SSE keep-alive frames.
Closes: #8164