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

feat(router.py): allow setting model_region in litellm_params #3582

Merged
merged 3 commits into from
May 11, 2024

Conversation

krrishdholakia
Copy link
Contributor

Title

Allow setting 'region_name' as 'eu' and have it work for region-based routing

Relevant issues

Closes #3580

Type

🆕 New Feature

Changes

  • router.py

Testing

in test_router.py

Notes

Bonus if we also add

  • vertex regions
  • bedrock regions
  • watsonx regions

support, as they're all explicitly mapped - https://docs.litellm.ai/docs/set_keys#setting-project-location-token

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs/my-website)

OS Tests (optional but appreciated):

  • Tested on MacOS

Copy link

vercel bot commented May 11, 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 11, 2024 6:35pm

@krrishdholakia krrishdholakia merged commit 86d0c0a into main May 11, 2024
5 of 7 checks passed
@krrishdholakia krrishdholakia deleted the litellm_explicit_region_name_setting branch May 11, 2024 18:36
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]: region based routing explicit region name setting
1 participant