CLIProxyAPI icon indicating copy to clipboard operation
CLIProxyAPI copied to clipboard

Streaming fails for "preview" and "thinking" models (response is buffered)

Open RezaRashidi opened this issue 11 months ago • 2 comments

Describe the bug When making requests with stream: true, specific newer/preview models do not return Server-Sent Events (SSE) chunks incrementally. Instead, the server "hangs" until the entire generation is complete, and then sends the full response payload at once. This behavior defeats the purpose of streaming, resulting in a very high Time to First Token (TTFT) for the client. Affected Models

  • gemini-3-pro-preview
  • gemini-claude-opus-4-5-thinking

RezaRashidi avatar Dec 08 '25 17:12 RezaRashidi

gemini-claude-opus-4-5-thinking fixed but gemini-3-pro-preview not Streaming @luispater

RezaRashidi avatar Dec 13 '25 17:12 RezaRashidi

@RezaRashidi Created a PR to address this!

teeverc avatar Dec 13 '25 21:12 teeverc