we send message type of 1 but not the others

This commit is contained in:
Saifeddine ALOUI 2023-05-28 23:26:55 +02:00
parent 10ef64ebf8
commit 604faa5fb3

View File

@ -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,