mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: use exact match for LITELLM_REDACT_SECRETS env var, remove unused test param
This commit is contained in:
parent
3a6632d533
commit
9173c1abce
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ if set_verbose is True:
|
|||
"`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs."
|
||||
)
|
||||
|
||||
_ENABLE_SECRET_REDACTION = bool(os.getenv("LITELLM_REDACT_SECRETS", False))
|
||||
_ENABLE_SECRET_REDACTION = os.getenv("LITELLM_REDACT_SECRETS") == "TRUE"
|
||||
|
||||
_REDACTED = "REDACTED"
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ def test_filter_redacts_non_string_args():
|
|||
assert "REDACTED" in output
|
||||
|
||||
|
||||
def test_disable_redaction_passes_secrets_through(_enable_redaction):
|
||||
def test_disable_redaction_passes_secrets_through():
|
||||
"""When _ENABLE_SECRET_REDACTION is False, secrets pass through."""
|
||||
with patch("litellm._logging._ENABLE_SECRET_REDACTION", False):
|
||||
record = logging.LogRecord(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue