You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onError works with the same code for v3.4, but when I upgrade to v4 and remove the await from streamText, onError is not being passed to the client hook
The text was updated successfully, but these errors were encountered:
Description
Error message is not being passed to onError callback in useChat hook. I'm using a custom express server for the /chat endpoint.
Code example
// useChat hook
/chat endpoint
AI provider
No response
Additional context
onError works with the same code for v3.4, but when I upgrade to v4 and remove the await from streamText, onError is not being passed to the client hook
The text was updated successfully, but these errors were encountered: