Replies: 1 comment
-
I have a similar problem. I do a similar action on new chats and the useEffect is giving me issues because of strict mode. I tried calling stop, returned from useChat, but it didn't help. The stop reason is "stop", same as when the chat completion finishes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’d like to make automatically start conversation on
chat/[id]
page after insert message atchat/new
route segment.I saw the pattern vercel AI sdk team used in gemini chatbot and ai chatbot in github
It works very well when I didn’t have an image or a non-scrollable section.
But when I have an image, it causes flickering. Also, when I have a long message, it scrolls up and down again.
I’ve tried method like using useEffect. it doesn’t work as what I expected because of react dev strict mode.
Has anyone found an answer to this?
Beta Was this translation helpful? Give feedback.
All reactions