Gemini API Response with Garbled Characters when using Streaming; Request for a stream option
#738
Unanswered
gooose09009
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description of the Issue
Hello, first of all, thank you for this amazing plugin!
I'm experiencing an issue where the responses from the Gemini API occasionally contain garbled/incorrect characters in the middle of the text. This seems to be a known problem with the Google Ai Studio API itself when using streaming mode.
For example, a normal sentence might be interrupted by a few random symbols or characters, like:
... this is a sample respon�� with garbled charac�ers ...Feature Request
Currently, Page Assist does not appear to provide an option to set "stream=false". This forces the use of streaming, which inevitably leads to these garbled characters.
Could you please consider adding a configuration option to toggle streaming on/off for API calls? This would allow users to switch to non-streaming mode to work around this Gemini API issue and receive clean, stable responses.
Environment
Thank you for your time and consideration!
Beta Was this translation helpful? Give feedback.
All reactions