Remove unnecessary order fallback cast

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

View file

@ -11057,7 +11057,7 @@ class Router:
_target_order: Final = (request_kwargs or {}).pop("_target_order", None)
if _target_order is not None:
healthy_deployments = litellm.utils._get_order_filtered_deployments(
cast(list[dict], healthy_deployments), target_order=_target_order
healthy_deployments, target_order=_target_order
)
healthy_deployments = await self.async_callback_filter_deployments(