-
Notifications
You must be signed in to change notification settings - Fork 60.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 启用流式传输后Gemini Pro模型输出的结果可能会包含重复内容 #3703
Comments
Title: [Bug] After enabling streaming, the output results of the Gemini Pro model may contain duplicate content. |
to be honest it's not perfect using json decoder for streaming |
我也同样遇到这个问题,基本上每次都会重复 |
I also encounter this problem, it basically repeats every time |
另外,我补充一个 bug,关于环境变量。 GOOGLE_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent GOOGLE_API_KEY=AIzaSyAbrXo18... 如果这么设置,无法正常使用,报 404 错误。 |
It's not possible, it's repeated every time: In addition, I will add a bug regarding environment variables. GOOGLE_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent GOOGLE_API_KEY=AIzaSyAbrXo18... If set like this, it cannot be used normally and a 404 error will be reported. |
建议增加关闭流式的功能,这样等支持后再打开 |
It is recommended to add the function of turning off streaming so that it can be turned on again after support. |
请在下方中括号内输入 x 来表示你已经知晓相关内容。
描述问题
在启用了对Gemini Pro流式传输的支持后(#3688) ,Gemini的回答有一定几率出现重复内容,比对请求的返回结果可以发现,有一部分内容丢失了,有一部分发生了重复。
请求的返回结果:
截图
如何复现
使用Gemini pro询问一个可能回复较长的问题。有一定几率出现。
一些必要的信息
The text was updated successfully, but these errors were encountered: