Timothy Jaeryang Baek 6 tháng trước cách đây
mục cha
commit
fe4f760b4a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/lib/components/chat/Chat.svelte

+ 4 - 0
src/lib/components/chat/Chat.svelte

@@ -1322,6 +1322,10 @@
 			history.messages[messages.at(-1).id].childrenIds.push(userMessageId);
 		}
 
+		if (autoScroll) {
+			scrollToBottom();
+		}
+
 		// focus on chat input
 		const chatInput = document.getElementById('chat-input');
 		chatInput?.focus();