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

Fallback Support! #742

Open
abaileyb opened this issue Dec 13, 2024 · 1 comment
Open

Fallback Support! #742

abaileyb opened this issue Dec 13, 2024 · 1 comment
Labels
enhancement New feature or request mirascope

Comments

@abaileyb
Copy link

Description

Yesterday's OpenAI outage had me thinking - it would be awesome if Mirascope had a feature where if the designated provider API returned a code indicating that there was an outage, I could specify another provider to attempt. Maybe this would take the form of a fallback decorator?

Would be pretty killer to have stuff fallback to Anthropic when OpenAI is down etc.

@abaileyb abaileyb added the enhancement New feature or request label Dec 13, 2024
@willbakst
Copy link
Contributor

For a fallback decorator, we first need to finish #729 so that we have a truly provider-agnostic interface. Implementing this should be fairly straightforward once we have the new decorator. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mirascope
Projects
None yet
Development

No branches or pull requests

2 participants