-
Notifications
You must be signed in to change notification settings - Fork 6
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
openai.APIConnectionError when using batch mode not caught #279
Comments
how to replicate? (maybe turning off the internet in the middle of batch submission?) |
Yes, you can replicate this error by disabling the internet on your computer and then running the following.
|
I think the solution here is to have a wrapper function for openai client actions in which
|
We should also do the same thing for anthropic client actions.
With the internet disabled gives
we can just have a single wrapper that catches both of these exception types |
Also we want to catch and log these errors because they are difficult to see in the ray setup (requires going into the task table). E.g. this is the dump in the logs
This is what the failure is reported as
And this is what is in the task table
|
From the docs
https://help.openai.com/en/articles/6897191-apiconnectionerror
Is this something we can catch and then handle more robustly?
The text was updated successfully, but these errors were encountered: