From aa17bbc8696bde61bff9d8c35bdf66b28db4051c Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 24 Jun 2024 01:05:49 +0200 Subject: [PATCH] sync --- events/lollms_chatbox_events.py | 6 ------ lollms_core | 2 +- lollms_webui.py | 3 --- zoos/personalities_zoo | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/events/lollms_chatbox_events.py b/events/lollms_chatbox_events.py index f6eafaa0..8ef5e6d3 100644 --- a/events/lollms_chatbox_events.py +++ b/events/lollms_chatbox_events.py @@ -50,9 +50,6 @@ def add_events(sio:socketio): # send the message to the bot print(f"Creating an empty message for AI answer orientation") if lollmsElfServer.session.get_client(client_id).discussion: - if not lollmsElfServer.model: - lollmsElfServer.error("No model selected. Please make sure you select a model before starting generation", client_id = client_id) - return lollmsElfServer.new_message(client_id, lollmsElfServer.config.user_name, message, sender_type=SENDER_TYPES.SENDER_TYPES_USER, open=True) else: if lollmsElfServer.personality is None: @@ -62,9 +59,6 @@ def add_events(sio:socketio): # send the message to the bot print(f"Creating an empty message for AI answer orientation") if lollmsElfServer.session.get_client(client_id).discussion: - if not lollmsElfServer.model: - lollmsElfServer.error("No model selected. Please make sure you select a model before starting generation", client_id=client_id) - return lollmsElfServer.new_message(client_id, lollmsElfServer.personality.name, "[edit this to put your ai answer start]", open=True) diff --git a/lollms_core b/lollms_core index 26a3ff35..8888ded2 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 26a3ff35acf152b49e1087d5698ad4864c7b6092 +Subproject commit 8888ded2d4165297c41d0d04bdad4f64312327a6 diff --git a/lollms_webui.py b/lollms_webui.py index 98afeb93..2f436fc8 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -1244,9 +1244,6 @@ class LOLLMSWebUI(LOLLMSElfServer): print(f"Received message : {message.content}") if client.discussion: try: - if not self.model: - self.error("No model selected. Please make sure you select a model before starting generation", client_id=client_id) - return # First we need to send the new message ID to the client if is_continue: client.discussion.load_message(message_id) diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 22276d14..d1c1c251 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 22276d142e3928ed1aeb0f2be290618e3d750c72 +Subproject commit d1c1c2514b05f66296cbad0b55f300fb7050a5e0