Format default order filter

This commit is contained in:
Mohammad Javad Naderi 2026-07-23 06:29:24 +03:30
parent abb1d8f8a3
commit 0c82020253

View file

@ -11093,9 +11093,7 @@ class Router:
# Without a fallback target, return deployments with the lowest configured order.
if _target_order is None:
healthy_deployments = litellm.utils._get_order_filtered_deployments(
cast(list[dict], healthy_deployments)
)
healthy_deployments = litellm.utils._get_order_filtered_deployments(cast(list[dict], healthy_deployments))
## WEIGHTED FAILOVER EXCLUSION ## -> drop deployments already tried in
## this request via weighted-failover. Always honored, regardless of the