Replies: 1 comment 1 reply
-
I would love to have this. Especially for streaming tool calls in the client-side. Currently, the However, there is no such thing as an The workaround is to get to the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use useChat for my application, but I'm needing to process each chunk as they come in. As far as I can tell, useChat does not have an escape hatch for me to intercept the text chunks as they come in and to do something with them. onData only works for "data-..." types, but not for the "text-delta".
Is there a workaround for this? Or can this be an added feature? Right now I'm just using direct streaming and not useChat, but useChat would be easier to use with its built-in API functionalities.
I know there is an onChunk on server-side, but it would be helpful to have something on client-side.
Some insight would be helpful, thank you.
Beta Was this translation helpful? Give feedback.
All reactions