Replies: 1 comment 2 replies
-
Working on it: #1514 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble integrating streamText on my server with useChat on my client. Specifically, I'm struggling with the execution functions within the tools object.
When I include the execute functions in the tools object for streamText on the server, they work as expected. However, if I leave these functions out on the server, hoping to handle them on the client side instead, nothing happens.
It appears that useChat expects a differently formatted tools object compared to streamText. I suspect this discrepancy might be causing the issue, but I'm not sure how to resolve it.
Does anyone have experience or a working example of using tools objects with useChat that they could share? Any assistance or pointers would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions