Skip to content

Vue: Body object not updated when using useChat #508

Closed Answered by dosstx
dosstx asked this question in Help
Discussion options

You must be logged in to vote

I believe I may have fixed this issue for my case. I submitted a PR here: #511

In Vue 3, refs should be unwrapped inside the composable to make them reactive. By using the ref pattern, you allow the composable to react to changes in the value. The missing piece here is that the useChat utility should use unref(body) instead of directly accessing the .value property.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dosstx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant