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()