Open eltoob opened 6 days ago
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
Ok I finally fixed the issue.
OpenAI.configure do |config|
config.extra_headers = {
"Accept-Encoding" => ""
}
end
Ok I finally fixed the issue.
OpenAI.configure do |config|
config.extra_headers = {
"Accept-Encoding" => ""
}
end
Not sure why
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,