mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
style: apply black to litellm/router.py
Made-with: Cursor
This commit is contained in:
parent
378d80a9ad
commit
8a9457e0c0
1 changed files with 9 additions and 6 deletions
|
|
@ -5366,14 +5366,17 @@ class Router:
|
|||
e,
|
||||
(litellm.ContextWindowExceededError, litellm.ContentPolicyViolationError),
|
||||
)
|
||||
_request_team_id: Optional[str] = (
|
||||
kwargs.get("metadata", {}) or {}
|
||||
).get("user_api_key_team_id")
|
||||
_request_team_id: Optional[str] = (kwargs.get("metadata", {}) or {}).get(
|
||||
"user_api_key_team_id"
|
||||
)
|
||||
# Use wildcard-aware lookup so order-based fallback also works for model
|
||||
# groups resolved via pattern routing (e.g. `openai/*` -> `openai/gpt-4.1-mini`).
|
||||
all_deployments = self.get_model_list(
|
||||
model_name=original_model_group, team_id=_request_team_id
|
||||
) or []
|
||||
all_deployments = (
|
||||
self.get_model_list(
|
||||
model_name=original_model_group, team_id=_request_team_id
|
||||
)
|
||||
or []
|
||||
)
|
||||
_order_set: set = {
|
||||
litellm.utils._get_deployment_order(d)
|
||||
for d in all_deployments
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue