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

Default routing fallbacks #3625

Merged
merged 10 commits into from
May 14, 2024
Merged

Default routing fallbacks #3625

merged 10 commits into from
May 14, 2024

Conversation

krrishdholakia
Copy link
Contributor

Title

Allow setting default fallbacks, works across all models

Relevant issues

Closes #3623

Type

🆕 New Feature
🧹 Refactoring

Changes

  • New default_fallbacks param in Router init
  • TypedDict for 'model_list' -> gives type hints when creating a router model_list

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

  • test_router_fallbacks.py::test_default_model_fallbacks
Screenshot 2024-05-13 at 6 10 11 PM

allow user to define a generic list of fallbacks, in case a new deployment is bad

Closes #3623
Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 2:02am

@ishaan-jaff ishaan-jaff merged commit ffcd6b6 into main May 14, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: allow default model fallback
2 participants