You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Gemini just announced the support for openai library.
See here: https://ai.google.dev/gemini-api/docs/openai
For some reason, the ruby library doesn't stream (or I guess to be more precise it streams all the response at once.
Tried the exact same request the python library and it streams properly
ok quick update,
I try to replicate the exact same headers as the python library
When i pass "Accept-Encoding" => "gzip, deflate", as a header, it's kinda working (ie I do see the proc working but there are issues with eventstreamer
Describe the bug
Gemini just announced the support for openai library.
See here: https://ai.google.dev/gemini-api/docs/openai
For some reason, the ruby library doesn't stream (or I guess to be more precise it streams all the response at once.
Tried the exact same request the python library and it streams properly
To Reproduce
Steps to reproduce the behavior:
You can execute the same code with python and you will see that the stream will work properly
If you try to run the following code
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Here I logged the time and you can see that with ruby it returns all the chunks at once
Now with python it will actually stream,
The text was updated successfully, but these errors were encountered: