We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da94835 + 5296ee0 commit 41aca84Copy full SHA for 41aca84
src/lib/components/chat/Chat.svelte
@@ -1322,10 +1322,6 @@
1322
history.messages[messages.at(-1).id].childrenIds.push(userMessageId);
1323
}
1324
1325
- if (autoScroll) {
1326
- scrollToBottom();
1327
- }
1328
-
1329
// focus on chat input
1330
const chatInput = document.getElementById('chat-input');
1331
chatInput?.focus();
@@ -1341,6 +1337,10 @@
1341
1337
parentId: string,
1342
1338
{ modelId = null, modelIdx = null, newChat = false } = {}
1343
1339
) => {
1340
+ if (autoScroll) {
+ scrollToBottom();
+ }
+
1344
let _chatId = JSON.parse(JSON.stringify($chatId));
1345
_history = JSON.parse(JSON.stringify(_history));
1346
0 commit comments