Skip to content
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

gemini-pro输出重复内容 #138

Closed
2 tasks done
happychos opened this issue Dec 30, 2023 · 15 comments
Closed
2 tasks done

gemini-pro输出重复内容 #138

happychos opened this issue Dec 30, 2023 · 15 comments

Comments

@happychos
Copy link

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [x ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
vercel更新到最新gemini-pro出现输出重复的问题

如何复现
请告诉我们你是通过什么操作触发的该问题。

截图
Screenshot_2023-12-30-20-29-22-543_com android chrome

一些必要的信息

  • 系统:[android 11 / ios 16]
  • 浏览器: [chrome]
  • 版本: [填写设置页面的版本号]
  • 部署方式:[vercel部署]
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: gemini-pro outputs duplicate content

In order to improve communication efficiency, we have set up an official QQ group and QQ channel. If you encounter any problems during use or construction, please join the group or channel for consultation as soon as possible, unless it is a bug that can be stably reproduced or More creative feature suggestions, otherwise please do not send low-quality and meaningless posts to the Issue area.

Click to join the official group chat

Feedback Instructions

⚠️ NOTE: Any post that does not follow this template will be immediately closed and we will not be able to locate your issue without providing the information below.

Please enter x in the square brackets below to indicate that you already know the relevant content.

  • I confirm that I have searched for the feedback issue in FAQ. No solution found;
  • I confirm that I have searched the Issues list (including those that have been Closed) for this feedback issue, but no answer has been found.
  • I confirm that I have searched for the feedback issue in Vercel usage tutorial , no answer found.

Describe the problem
When vercel is updated to the latest gemini-pro, there is a problem of duplicate output.

How ​​to reproduce
Please tell us what action triggered this issue.

screenshot
![Screenshot_2023-12-30-20-29-22-543_com android chrome](https://github.com/Hk-Gosuto/ChatGPT-Next-Web-LangChain/assets/139939316/4e3af8d1-68e1-4268-ba42 -7fca87ae201d)

Some necessary information

  • System: [android 11/ios 16]
  • Browser: [chrome]
  • Version: [Fill in the version number of the settings page]
  • Deployment method: [vercel deployment]

@MuRo-J
Copy link

MuRo-J commented Dec 30, 2023

上游已知问题,貌似得等待下Google能有 text-stream
ChatGPTNextWeb#3703

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


There is a known issue in the upstream. It seems that we have to wait for Google to have text-stream.
ChatGPTNextWeb#3703

@MuRo-J
Copy link

MuRo-J commented Jan 1, 2024

上游大佬兼容了这个问题,同时还修复了一个 Gemini的安全策略配置问题
fredliang44

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The upstream leader has made this issue compatible and also fixed a Gemini security policy configuration issue.
fredliang44

@Hk-Gosuto
Copy link
Owner

已合并上游仓库代码

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream repository code has been merged

@MuRo-J
Copy link

MuRo-J commented Jan 2, 2024

已合并上游仓库代码

辛苦啦!我测试了下 现在回复正常,而且不重复啦~

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream repository code has been merged

Thank you for your hard work! I tested it and now the response is normal and not repeated~

@MuRo-J
Copy link

MuRo-J commented Jan 2, 2024

已合并上游仓库代码

辛苦啦!我测试了下 现在回复正常,而且不重复啦~

现在结果有些诡异,重复倒是不一定,但是非常诡异
CleanShot 2024-01-02 at 13 15 22

会调用两遍不同的接口,短句没有测试出来,添麻烦了

[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0"
02/Jan/2024:13:14:32 +0800] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream warehouse code has been merged

Thank you for your hard work! I tested it and now the response is normal and not repeated~

Now the result is a bit weird. It’s not necessarily repeated, but it’s very weird.
CleanShot 2024-01-02 at 13 15 22

Different interfaces will be called twice, and the short sentence is not tested, which is causing trouble.

[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0"
02/Jan/2024:13:14:32 +0800] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

@Hk-Gosuto
Copy link
Owner

已合并上游仓库代码

辛苦啦!我测试了下 现在回复正常,而且不重复啦~

现在结果有些诡异,重复倒是不一定,但是非常诡异 CleanShot 2024-01-02 at 13 15 22

会调用两遍不同的接口,短句没有测试出来,添麻烦了

[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0" 02/Jan/2024:13:14:32 +0800] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

/api/google/v1beta/models/gemini-pro:generateContent 接口调用是用来总结对话内容摘要的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream warehouse code has been merged

Thank you for your hard work! I tested it and now the response is normal, and it will not be repeated~

Now the results are a bit weird, not necessarily repeated, but very weird! [CleanShot 2024-01-02 at 13 15 22](https://private-user-images.githubusercontent.com/64354330/293630350-cec3d9f0-358d- 43b5-9269-032a75172073.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..X-cSnT0UmZM3-yTKzw-dRUAILyrjX0j5-Fz6rNqWLBE)

Different interfaces will be called twice, and the short sentence is not tested, causing trouble.

[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0" 02/Jan/2024:13:14:32 +0800] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

The /api/google/v1beta/models/gemini-pro:generateContent interface call is used to summarize the conversation content.

@MuRo-J
Copy link

MuRo-J commented Jan 3, 2024

已合并上游仓库代码

辛苦啦!我测试了下 现在回复正常,而且不重复啦~

现在结果有些诡异,重复倒是不一定,但是非常诡异 CleanShot 2024-01-02 at 13 15 22
会调用两遍不同的接口,短句没有测试出来,添麻烦了
[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0" 02/Jan/2024:13:14:32 +0800] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

/api/google/v1beta/models/gemini-pro:generateContent 接口调用是用来总结对话内容摘要的

非常感谢您耐心回复,我再次拉了一遍最新仓库,结果正常啦
CleanShot 2024-01-03 at 12 12 41

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream warehouse code has been merged

Thank you for your hard work! I tested it and now the response is normal, and it will not be repeated~

Now the results are a bit weird, not necessarily repeated, but very weird! [CleanShot 2024-01-02 at 13 15 22](https://private-user-images.githubusercontent.com/64354330/293630350-cec3d9f0-358d -43b5-9269-032a75172073.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..X-cSnT0UmZM3-yTKzw-dRUAILyrjX0j5-Fz6rNqWLBE)
Different interfaces will be called twice, and the short sentence is not tested, causing trouble.
[02/Jan/2024:13:14:29 +0800] "POST /api/google/v1/models/gemini-pro:streamGenerateContent HTTP/2.0" 02/Jan/2024:13:14:32 +0800 ] "POST /api/google/v1/models/gemini-pro:generateContent HTTP/2.0" 200 1193

/api/google/v1beta/models/gemini-pro:generateContent interface call is used to summarize the conversation content summary

Thank you very much for your patient reply. I checked the latest warehouse again and the result is normal.
CleanShot 2024-01-03 at 12 12 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants