From 81bf3fabac426f08bda4d2165c15f3138cd1ece9 Mon Sep 17 00:00:00 2001 From: lei_lei <96427312+leilei3167@users.noreply.github.com> Date: Mon, 31 Aug 2026 09:17:02 +0000 Subject: [PATCH] style(health_check): put mutable-ok on dict() construction line --- litellm/proxy/health_check.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/proxy/health_check.py b/litellm/proxy/health_check.py index 35bbe9264bd..d7e3a8d2e76 100644 --- a/litellm/proxy/health_check.py +++ b/litellm/proxy/health_check.py @@ -759,9 +759,7 @@ 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