#how to catch openai api exceptions?
7 messages · Page 1 of 1 (latest)
Try except?
im talking about excepting specific openai exceptions such as a max token limit reached or a quota reached error
Lol I just check the error string but we should show example for what object
I’ll look it up soon for you since I also want to know
lolol i guess thats one way to do it. but yeah i would like to know what the object is also
I think currently this is the only way? Because from openai.error there’s only some very broad error classes that are used like ServiceUnavailableError RateLimitError InvalidRequestError (this one pretty much encapsulates everything)