From be6ef2a2bcf925a12d78be2aba33f178f9e4e139 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 18 Aug 2024 20:38:00 +0200 Subject: [PATCH] fixed ui and metadata message update --- lollms_webui.py | 6 +++--- zoos/personalities_zoo | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lollms_webui.py b/lollms_webui.py index c418c14c..e8c09379 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -957,7 +957,7 @@ class LOLLMSWebUI(LOLLMSElfServer): 'id':client.discussion.current_message.id, 'metadata': metadata if type(metadata) in [str, None] else json.dumps(metadata) if type(metadata)==dict else None, 'discussion_id':client.discussion.discussion_id, - 'operation_type': MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_JSON_INFOS, + 'operation_type': MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_JSON_INFOS.value, }, to=client_id ) ) @@ -970,9 +970,9 @@ class LOLLMSWebUI(LOLLMSElfServer): partial(self.sio.emit,'update_message', { "sender": self.personality.name, 'id':client.discussion.current_message.id, - 'ui': ui if type(ui) in [str, None] else None, + 'ui': ui, 'discussion_id':client.discussion.discussion_id, - 'operation_type': MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_UI, + 'operation_type': MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_UI.value, }, to=client_id ) ) diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index d764bbde..3888e216 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit d764bbde372311ab5d8e82d7c1c0c3528273f37c +Subproject commit 3888e216475c2946a8a7dd0367eea420acb7efd7