mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
sync
This commit is contained in:
parent
0361af0a35
commit
aa17bbc869
@ -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)
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 26a3ff35acf152b49e1087d5698ad4864c7b6092
|
||||
Subproject commit 8888ded2d4165297c41d0d04bdad4f64312327a6
|
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 22276d142e3928ed1aeb0f2be290618e3d750c72
|
||||
Subproject commit d1c1c2514b05f66296cbad0b55f300fb7050a5e0
|
Loading…
Reference in New Issue
Block a user