Open steebchen opened 5 months ago
Also experiencing this issue - would love some guidance here!
Same, its obvious that the openAI library is throwing an error but there's no consistent way to catch it using this library it seems.
Same here! Couldn't find any documentation on how this should be handled.
Same here, still can't find how to do that, would highly appreciate guidance!
Description
It looks like the render function doesn't support error handling. I tried wrapping the render function in a try/catch, but it doesn't catch any errors (specifically when an error is immediately returned, such as a context window length exceeded)/
Code example
I used this template: https://github.com/vercel/ai-chatbot
At this part:
This can result in this error being thrown
and the UI just keeps showing this:
Additional context
No response