This commit is contained in:
Timothy J. Baek 2024-08-22 17:37:47 +02:00
parent 0939cb5ed6
commit 5d8dbff486

View File

@ -50,7 +50,7 @@
export let submitPrompt: Function;
export let stopResponse: Function;
export let autoScroll = true;
export let autoScroll = false;
export let atSelectedModel: Model | undefined;
export let selectedModels: [''];
@ -93,7 +93,10 @@
const scrollToBottom = () => {
const element = document.getElementById('messages-container');
element.scrollTop = element.scrollHeight;
element.scrollTo({
top: element.scrollHeight,
behavior: 'smooth'
});
};
const uploadFileHandler = async (file) => {