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.
https://github.com/ajndkr/lanarky/issues/76#issue-1733489956
AC: Bump lanarky to verify streaming is fixed