Skip to content
Discussion options

You must be logged in to vote

You need to store the user's ID or some other identification and pass that as the messages to the API call. On the client, you can pass the initial messages to the useChat hook with setMessages. See https://sdk.vercel.ai/docs/api-reference/use-chat#chat-helpers

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ExLineP
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants