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

main主分支拉下的代码,使用gemini模型响应的Content-Type: text/event-stream,界面上消息是重复的[Bug] #4966

Closed
1 of 3 tasks
gongjing2012 opened this issue Jul 10, 2024 · 5 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@gongjing2012
Copy link

Bug Description

1、main主分支拉下的代码,使用gemini模型响应的Content-Type: text/event-stream,界面上消息是重复的。
2、发现 onFinish(message) {
debugger
botMessage.streaming = false;
if (message) {
botMessage.content = message;
get().onNewMessage(botMessage);
}
ChatControllerPool.remove(session.id, botMessage.id);
},执行多次,消息就重复累加了,请帮忙看看前端哪需要修改?postman请求自己封装的接口是正常的。

Steps to Reproduce

image

Expected Behavior

应该就是一条消息,而不是重复的消息。

Screenshots

image
image
image
image

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

window11

Desktop Browser

Chrome

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

@gongjing2012 gongjing2012 added the bug Something isn't working label Jul 10, 2024
@Issues-translate-bot
Copy link

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


Title: The code pulled from the main branch, using the Content-Type of the gemini model response: text/event-stream, the messages on the interface are repeated [Bug]

@lloydzhou lloydzhou self-assigned this Jul 10, 2024
@lloydzhou lloydzhou added the duplicate This issue or pull request already exists label Jul 10, 2024
@lloydzhou
Copy link
Contributor

#4955

@Issues-translate-bot
Copy link

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


#4955

lloydzhou added a commit to ConnectAI-E/ChatGPT-Next-Web that referenced this issue Jul 10, 2024
lloydzhou added a commit that referenced this issue Jul 10, 2024
@lloydzhou
Copy link
Contributor

已修复

@Issues-translate-bot
Copy link

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


It has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants