mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
style(health_check): ruff format
This commit is contained in:
parent
110e87cce6
commit
df3439b089
1 changed files with 4 additions and 4 deletions
|
|
@ -133,9 +133,7 @@ def _strip_model_metadata_from_health_params(
|
|||
) -> dict: # mutable-ok: ahealth_check kwargs and LiteLLM_Params(**probe) need a mutable dict
|
||||
"""Drop model_info capability keys that leaked onto the health-check probe params."""
|
||||
return { # mutable-ok: ahealth_check kwargs and LiteLLM_Params(**probe) need a mutable dict
|
||||
k: v
|
||||
for k, v in litellm_params.items()
|
||||
if not _is_health_check_model_metadata_key(k)
|
||||
k: v for k, v in litellm_params.items() if not _is_health_check_model_metadata_key(k)
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -761,7 +759,9 @@ def _update_litellm_params_for_health_check(model_info: dict, litellm_params: di
|
|||
the provider request body (#38941)
|
||||
"""
|
||||
# Copy first: callers pass the live deployment litellm_params dict.
|
||||
litellm_params = dict(litellm_params) # mutable-ok: copy so probe mutations don't rewrite the shared deployment dict # rebind-ok: local probe copy
|
||||
litellm_params = dict(
|
||||
litellm_params
|
||||
) # mutable-ok: copy so probe mutations don't rewrite the shared deployment dict # rebind-ok: local probe copy
|
||||
mode: Final = _resolve_health_check_mode(
|
||||
model_info,
|
||||
litellm_params, # any-ok: untyped router config dict
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue