From 604faa5fb3eb7a7b92e85e2361e78a28161102d0 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 28 May 2023 23:26:55 +0200 Subject: [PATCH] we send message type of 1 but not the others --- api/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/__init__.py b/api/__init__.py index 7c52fd5d..c62808df 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -707,6 +707,7 @@ class GPT4AllAPI(): def process_chunk(self, chunk, message_type): if message_type == 0: self.bot_says += chunk + if message_type < 2: self.socketio.emit('message', { 'data': self.bot_says, 'user_message_id':self.current_user_message_id,