mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
fixed ui and metadata message update
This commit is contained in:
parent
7a92fdd331
commit
be6ef2a2bc
@ -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
|
Loading…
Reference in New Issue
Block a user