forked from phoenix/litellm-mirror
feat(router.py): allow setting model_region in litellm_params
Closes https://github.com/BerriAI/litellm/issues/3580
This commit is contained in:
parent
c12af219af
commit
ebc927f1c8
5 changed files with 71 additions and 25 deletions
|
@ -5881,6 +5881,9 @@ def calculate_max_parallel_requests(
|
|||
|
||||
|
||||
def _is_region_eu(model_region: str) -> bool:
|
||||
if model_region == "eu":
|
||||
return True
|
||||
|
||||
EU_Regions = ["europe", "sweden", "switzerland", "france", "uk"]
|
||||
for region in EU_Regions:
|
||||
if "europe" in model_region.lower():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue