Scroll down when a message is added in the chat interface's handle stream response method

This commit is contained in:
sabaimran 2024-03-20 15:04:41 +05:30
parent 70ad78990a
commit d84188b221

View file

@ -558,6 +558,7 @@ To get started, just start typing below. You can also type / to see a list of co
newResponseElement.innerHTML = "";
}
newResponseElement.appendChild(formatHTMLMessage(rawResponse));
document.getElementById("chat-body").scrollTop = document.getElementById("chat-body").scrollHeight;
}
function handleCompiledReferences(rawResponseElement, chunk, references, rawResponse) {