Are there any Error classes that relate to errors made by the model provider? #4013
Unanswered
khanhduyvt0101
asked this question in
Help
Replies: 1 comment
-
We currently do not specifically catch and wrap model provider errors. Most model providers use API calls and throw https://sdk.vercel.ai/docs/reference/ai-sdk-errors/ai-api-call-error though. Please note that this might happen for other reasons as well though (e.g. failed automatic image downloads). Also, we automatically retry most failed calls, so you probably want to catch https://sdk.vercel.ai/docs/reference/ai-sdk-errors/ai-retry-error as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to catch all issues raised by the model provider and show them in useChat. For instance, I want to show rate limits, unsupported images, and other such issues. How can I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions