From 0c22ce20da643c5c5787342f5c402c549f8bf003 Mon Sep 17 00:00:00 2001 From: saloui Date: Thu, 27 Jul 2023 16:27:46 +0200 Subject: [PATCH] moved to lollms v2.1.59 --- api/__init__.py | 2 +- app.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/__init__.py b/api/__init__.py index c4cd4e3a..728be15a 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -749,7 +749,7 @@ class LoLLMsAPPI(LollmsApplication): return string - def process_chunk(self, chunk, message_type:MSG_TYPE, client_id): + def process_chunk(self, chunk, message_type:MSG_TYPE, metadata:dict={}, client_id:int=0): """ 0 : a regular message 1 : a notification message diff --git a/app.py b/app.py index 38d40f14..9c6e7b27 100644 --- a/app.py +++ b/app.py @@ -78,7 +78,8 @@ try: import shutil import socket -except: +except Exception as ex: + print(ex) print("Error importing some libraries. Updating lollms...") run_update_script()