Descriptive and Distinct Errors #120
maharshi365
started this conversation in
Ideas
Replies: 1 comment
-
|
I think this is a great idea for us to explore and implement! |
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
Uh oh!
There was an error while loading. Please reload this page.
-
One of the key issues with the Vercel AI SDK imo is the lack of good error outputs. They have a list but alot of it is hidden in the internals. It leads to alot of clunky string checks.
I think the api should have custom errors like RateLimit Error, or TooManyTokenError. It would be even better with context built in like retry after or maxTokenCount., etc. Let Users have more low level control or atleast make it accessible.
Beta Was this translation helpful? Give feedback.
All reactions