Skip to content
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

[Bug]: If OpenAI has temporary outage - there is no way to use other models (ex. anthropic) #727

Closed
1 task done
mwolosewicz opened this issue Jul 12, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@mwolosewicz
Copy link

What happened?

The OpenAI is temporary unavailable so I want to use other model, but I can't change it:

fabric --changeDefaultModel claude-3-5-sonnet
Error: Server error '503 Service Temporarily Unavailable' for url 'https://api.openai.com/v1/models'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503

Version check

  • Yes I was.

Relevant log output

fabric --changeDefaultModel claude-3-5-sonnet
Error: Server error '503 Service Temporarily Unavailable' for url 'https://api.openai.com/v1/models'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503

Relevant screenshots (optional)

No response

@mwolosewicz mwolosewicz added the bug Something isn't working label Jul 12, 2024
@mwolosewicz mwolosewicz changed the title [Bug]: If ex. OpenAI has temporary outage - there is no way to use other models (ex. anthropic) [Bug]: If OpenAI has temporary outage - there is no way to use other models (ex. anthropic) Jul 12, 2024
@patonw
Copy link

patonw commented Jul 12, 2024

This error handler is too narrow:

except APIConnectionError as e:

It should also ignore an (APIStatusError)[https://github.com/openai/openai-python/blob/ec4511a6fa4862770cf14b2b58d3493e9bacb062/src/openai/_exceptions.py#L74] or possibly just all APIErrors

@alexasherman
Copy link

photo_2024-10-28_14-09-54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants