Use morphdom to make chat streaming 1902381098231% faster (#6653)

This commit is contained in:
oobabooga 2025-01-11 12:55:19 -03:00 committed by GitHub
parent 02db4b0d06
commit 3a722a36c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 5 deletions

View file

@ -147,10 +147,9 @@ const observer = new MutationObserver(function(mutations) {
doSyntaxHighlighting();
if(!isScrolled) {
if (!isScrolled && targetElement.scrollTop !== targetElement.scrollHeight) {
targetElement.scrollTop = targetElement.scrollHeight;
}
});
// Configure the observer to watch for changes in the subtree and attributes

1
js/morphdom/morphdom-umd.min.js vendored Normal file

File diff suppressed because one or more lines are too long