mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
remove fields with credentials
This commit is contained in:
parent
5bffa30cb9
commit
faa0186bab
2 changed files with 1 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ class SensitiveDataMasker:
|
|||
"token",
|
||||
"auth",
|
||||
"credential",
|
||||
"credentials",
|
||||
"access",
|
||||
"private",
|
||||
"certificate",
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue