mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
bugfix
This commit is contained in:
parent
8684717317
commit
580e31f4e9
@ -376,6 +376,7 @@ function addMessage(sender, message, id, rank = 0, can_edit = false) {
|
||||
// scroll to bottom of chat window
|
||||
chatWindow.scrollTop = chatWindow.scrollHeight;
|
||||
|
||||
messageElement.messageTextElement = messageTextElement
|
||||
messageElement.hiddenElement = hiddenElement
|
||||
messageElement.senderElement = senderElement
|
||||
messageElement.messageTextElement = messageTextElement
|
||||
|
@ -66,13 +66,14 @@ function update_main(){
|
||||
{
|
||||
// We parse it and
|
||||
infos = JSON.parse(text)
|
||||
|
||||
user_msg.setSender(infos.user)
|
||||
user_msg.setID(infos.id)
|
||||
bot_msg.setSender(infos.bot)
|
||||
bot_msg.setID(infos.response_id)
|
||||
|
||||
messageTextElement=elements;
|
||||
hiddenElement=elements.hiddenElement;
|
||||
messageTextElement=bot_msg.messageTextElement;
|
||||
hiddenElement=bot_msg.hiddenElement;
|
||||
entry_counter ++;
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user