mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Scroll down when a message is added in the chat interface's handle stream response method
This commit is contained in:
parent
70ad78990a
commit
d84188b221
1 changed files with 1 additions and 0 deletions
|
@ -558,6 +558,7 @@ To get started, just start typing below. You can also type / to see a list of co
|
||||||
newResponseElement.innerHTML = "";
|
newResponseElement.innerHTML = "";
|
||||||
}
|
}
|
||||||
newResponseElement.appendChild(formatHTMLMessage(rawResponse));
|
newResponseElement.appendChild(formatHTMLMessage(rawResponse));
|
||||||
|
document.getElementById("chat-body").scrollTop = document.getElementById("chat-body").scrollHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCompiledReferences(rawResponseElement, chunk, references, rawResponse) {
|
function handleCompiledReferences(rawResponseElement, chunk, references, rawResponse) {
|
||||||
|
|
Loading…
Reference in a new issue