fixed ui and metadata message update

This commit is contained in:
Saifeddine ALOUI 2024-08-18 20:38:00 +02:00
parent 7a92fdd331
commit be6ef2a2bc
2 changed files with 4 additions and 4 deletions

View File

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

@ -1 +1 @@
Subproject commit d764bbde372311ab5d8e82d7c1c0c3528273f37c
Subproject commit 3888e216475c2946a8a7dd0367eea420acb7efd7