ztjhz / BetterChatGPT

An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux)
http://bettergpt.chat/
Creative Commons Zero v1.0 Universal
7.8k stars 2.64k forks source link

gracefully handle EventSource `ping` messages #538

Open khimaros opened 4 months ago

khimaros commented 4 months ago

these are the default behavior for the sse_starlet library used by llama-cpp-python to keep the event source channel alive. currently BetterChatGPT will fail to parse these messages, resulting in the GUI no longer accepting subsequent token diffs from that chat id.