lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
MIT License
31.93k stars 7.62k forks source link

🐛 fix: fix retry issue when close page #2503

Closed arvinxx closed 2 weeks ago

arvinxx commented 2 weeks ago

💻 变更类型 | Change Type

🔀 变更说明 | Description of Change

修正重试问题, refs: #2501

📝 补充信息 | Additional Information

https://github.com/lobehub/lobe-chat/pull/2460 更新了 fetch 方法,使用了 https://github.com/Azure/fetch-event-source 包。

其内部实现存在 page 关闭后自动关闭请求,重新打开时又重连的机制: https://github.com/Azure/fetch-event-source/blob/main/src/fetch.ts#L45-L50 。进而造成了 #2501 的问题

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-community 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 14, 2024 5:08pm
lobehubbot commented 2 weeks ago

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community Please make sure you have followed our contributing guidelines. We will review it as soon as possible. If you encounter any problems, please feel free to connect with us.\ 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 如果您遇到任何问题,请随时与我们联系。

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.22%. Comparing base (f55747f) to head (1b97791). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2503 +/- ## ======================================= Coverage 93.22% 93.22% ======================================= Files 324 324 Lines 19527 19529 +2 Branches 2289 2289 ======================================= + Hits 18204 18206 +2 Misses 1323 1323 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lobehubbot commented 2 weeks ago

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.\ 项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx 或 @canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

lobehubbot commented 2 weeks ago

:tada: This PR is included in version 0.159.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: