ai
ai copied to clipboard
handling errors in the streaming response
Description
When handling errors in the stream, it breaks the entire stream and gives an error coming.
Is there a better way to do this?
Because it removes the ability to retry and just ends up in a user facing error.
Code example
error
Additional context
No response
Can you share the code / function that is causing this?