remove fields with credentials

This commit is contained in:
shivam 2025-12-19 17:12:58 -08:00
parent 5bffa30cb9
commit faa0186bab
2 changed files with 1 additions and 3 deletions

View file

@ -18,6 +18,7 @@ class SensitiveDataMasker:
"token",
"auth",
"credential",
"credentials",
"access",
"private",
"certificate",

View file

@ -1169,9 +1169,6 @@ class Router:
if litellm.redact_user_api_key_info:
masker = SensitiveDataMasker(visible_prefix=2, visible_suffix=0)
_deployment_copy["litellm_params"] = masker.mask_dict(litellm_params)
elif "api_key" in litellm_params:
litellm_params["api_key"] = litellm_params["api_key"][:2] + "*" * 10
return _deployment_copy
except Exception as e:
verbose_router_logger.debug(