diff --git a/api/__init__.py b/api/__init__.py index 17eda207..eda8fecc 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -1511,7 +1511,8 @@ class LoLLMsAPPI(LollmsApplication): }, room=client_id ) self.socketio.sleep(0.01) - self.connections[client_id]["current_discussion"].update_message(self.connections[client_id]["generated_text"], new_metadata=mtdt, new_ui=ui) + if msg_type != MSG_TYPE.MSG_TYPE_INFO: + self.connections[client_id]["current_discussion"].update_message(self.connections[client_id]["generated_text"], new_metadata=mtdt, new_ui=ui) def close_message(self, client_id): if not self.connections[client_id]["current_discussion"]: diff --git a/api/db.py b/api/db.py index 4e4bd960..b4da740f 100644 --- a/api/db.py +++ b/api/db.py @@ -614,7 +614,6 @@ class Discussion: ) self.messages.append(self.current_message) - self.current_message.update(content, metadata, ui) return self.current_message def rename(self, new_title):