fix: pass down id to append

This commit is contained in:
shadcn 2023-06-15 11:31:03 +04:00
parent fd99ff634f
commit 92309d77ec
4 changed files with 14 additions and 6 deletions

View file

@ -16,7 +16,10 @@ export function Chat({ id, initialMessages, className }: ChatProps) {
const { messages, append, reload, stop, isLoading, input, setInput } =
useChat({
initialMessages,
id
id,
body: {
id
}
})
return (