You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
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
Expected Behavior
应该就是一条消息,而不是重复的消息。
Screenshots
Deployment Method
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
The text was updated successfully, but these errors were encountered: