manipulate messages on createDataStreamResponse onError #3976
Unanswered
Godrules500
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the AI error (say the servers down) I want to catch that error (which i can do in onError), but how do I append to the messages from there?
If there is an AI error, I want to essentially push my own message to the message object. Also, it would be beneficial if onError could handle async operations.
Beta Was this translation helpful? Give feedback.
All reactions