scroll to bottom of messages generating messages

This commit is contained in:
2023-03-25 01:02:38 +08:00
parent 7a15792c39
commit bb84045481

View File

@@ -21,7 +21,7 @@ export default function ChatBOX(props: {
useEffect(() => {
console.log("ref", messagesEndRef);
messagesEndRef.current.scrollIntoView({ behavior: "smooth" });
}, [showRetry, showGenerating]);
}, [showRetry, showGenerating, generatingMessage]);
const client = new ChatGPT(chatStore.apiKey);