-
-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
TanStack AI version
v.0.2.2
Framework/Library version
v.0.2.2
Describe the bug and the steps to reproduce it
When submitting the model parameter in the useChat body, the received value is not the latest。@tanstack/ai-react
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://tanstack.com/ai/latest/docs/api/ai-react
Screenshots or Videos (Optional)
const chatOptions = React.useMemo(
() =>
createChatClientOptions({
id: `${model}_${new Date().getTime()}`,
connection: fetchServerSentEvents('/api/tanchat'),
body: { model },
// todo Tools
}),
[model],
)
console.log("🚀 ~ AiChat ~ chatOptions:", chatOptions)
const {
messages,
sendMessage,
isLoading: isStreaming,
stop,
// reload,
clear
} = useChat(chatOptions)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Metadata
Metadata
Assignees
Labels
No labels