bug: Streaming not working for Gemini 3 models (Flash/Pro Preview) via Gemini CLI/Antigravity
When using the gemini-3-flash-preview or gemini-3-pro-preview models, the streaming functionality appears to be broken. Instead of receiving the response in chunks (streaming), the proxy waits for the entire generation—including the "Thinking" process and the final "Response"—to complete, and then sends everything at once. This has been tested and confirmed using Kilo Code with both OpenAI and Gemini protocols.
Environment: Proxy Version: v6.6.26 (Plus Edition) Deployment: Docker Reverse Proxy: Nginx (as a gateway to the Docker container) Models affected: gemini-3-flash-preview, gemini-3-pro-preview Upstream Providers: Gemini CLI, Antigravity Client used: Kilo Code (tested with both OpenAI and Gemini protocols)
To Reproduce: Configure CLIProxyAPI to use Gemini 3 models via Antigravity or Gemini CLI. Set up a client (like Kilo Code) to request a streaming response. Send a prompt that triggers the "Thinking" capability. Observe that the client remains idle until the full output is ready, rather than showing the real-time thinking process and stream.
Expected behavior: The proxy should support streaming for Gemini 3 models, allowing the client to display the "Thinking" tokens and the response tokens as they are generated, similar to how it works with Gemini 2.0/1.5 models.
It's working for me, maybe the nginx caused this issue?