reworkd / AgentGPT

🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.
https://agentgpt.reworkd.ai
GNU General Public License v3.0
31.95k stars 9.25k forks source link

Unhandled Closed Connection w/Streaming #643

Closed awtkns closed 1 year ago

awtkns commented 1 year ago

https://github.com/ajndkr/lanarky/issues/76#issue-1733489956

Recently we merged some changes into https://github.com/reworkd/AgentGPT/pull/631 which enabled streaming on AgentGPT > using lanarky! After merging, I noticed an increase error rate due to what I assume is lanarky not closing the connection to openai if the client (React in our cases) closes the SSE stream early. This happens, for example, when the user closes the page while in the middle of a chat completion being streamed.

AC: Bump lanarky to verify streaming is fixed

awtkns commented 1 year ago

fix in #644

jasangill1 commented 1 year ago

Closing as fix was merged!