mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
fix(router): apply ruff format to session-affinity yield helpers
This commit is contained in:
parent
638fb7ab67
commit
0536659d95
1 changed files with 2 additions and 5 deletions
|
|
@ -392,13 +392,10 @@ class DeploymentAffinityCheck(CustomLogger):
|
|||
candidates: Final = [
|
||||
(deployment, model_id)
|
||||
for deployment in healthy_deployments
|
||||
if (model_id := self._deployment_model_id(deployment)) is not None
|
||||
and model_id != pinned_model_id
|
||||
if (model_id := self._deployment_model_id(deployment)) is not None and model_id != pinned_model_id
|
||||
]
|
||||
idle_deployments: Final = [
|
||||
deployment
|
||||
for deployment, model_id in candidates
|
||||
if await self._deployment_has_capacity(model_id)
|
||||
deployment for deployment, model_id in candidates if await self._deployment_has_capacity(model_id)
|
||||
]
|
||||
if not idle_deployments:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue