You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Original OpenAI Exceptions are wrapped in new types, but the types are not exported, and so you cannot catch specific error without importing private member
Describe the solution you'd like
Export ExceedMaxRetryTimes and in all other cases the original exception.
Describe alternatives you've considered
Directly raise the original exception. I'm not sure what is the value of raising WrappedOpenAIError, which is much more difficult to letar distinguish between subtypes and breaks the standard except ExceptionType approach.
You also loose some detail information as there is no way of accessing the original exception, unless accessing private members.
The text was updated successfully, but these errors were encountered:
Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!
Is your feature request related to a problem? Please describe.
Original OpenAI Exceptions are wrapped in new types, but the types are not exported, and so you cannot catch specific error without importing private member
Describe the solution you'd like
Export
ExceedMaxRetryTimes
and in all other cases the original exception.Describe alternatives you've considered
Directly raise the original exception. I'm not sure what is the value of raising WrappedOpenAIError, which is much more difficult to letar distinguish between subtypes and breaks the standard
except ExceptionType
approach.You also loose some detail information as there is no way of accessing the original exception, unless accessing private members.
The text was updated successfully, but these errors were encountered: