scroll to bottom of messages generating messages
This commit is contained in:
@@ -21,7 +21,7 @@ export default function ChatBOX(props: {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("ref", messagesEndRef);
|
console.log("ref", messagesEndRef);
|
||||||
messagesEndRef.current.scrollIntoView({ behavior: "smooth" });
|
messagesEndRef.current.scrollIntoView({ behavior: "smooth" });
|
||||||
}, [showRetry, showGenerating]);
|
}, [showRetry, showGenerating, generatingMessage]);
|
||||||
|
|
||||||
const client = new ChatGPT(chatStore.apiKey);
|
const client = new ChatGPT(chatStore.apiKey);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user