-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more descriptive error message in the presence of OpenAI API timeouts #1577
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1577 +/- ##
===========================================
+ Coverage 35.26% 47.04% +11.78%
===========================================
Files 44 44
Lines 5323 5327 +4
Branches 1234 1305 +71
===========================================
+ Hits 1877 2506 +629
+ Misses 3292 2610 -682
- Partials 154 211 +57
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested a modification to consider different use cases.
Co-authored-by: Chi Wang <[email protected]>
…outs (microsoft#1577) * Add more descriptive error message in the presence of OpenAI API timeouts * handle specific exception * Update autogen/oai/client.py Co-authored-by: Chi Wang <[email protected]> --------- Co-authored-by: Chi Wang <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
Why are these changes needed?
API timeouts can be confusing to a user. This adds a more descriptive error message when they occur and offers a suggestion to mitigate.
Related issue number
Checks