fix(redact_messages.py): fix pr

This commit is contained in:
Krrish Dholakia 2024-06-22 23:27:13 -07:00
parent 9450d2cf77
commit d857d82b0e
2 changed files with 151 additions and 60 deletions

View file

@ -39,8 +39,9 @@ def redact_message_input_output_from_logging(
request_headers = _request_headers.get("headers", {})
# check if user opted out of logging message/response to callbacks
if litellm.turn_off_message_logging is not True and request_headers.get(
"litellm-enable-message-redaction", False
if (
litellm.turn_off_message_logging is not True
and request_headers.get("litellm-enable-message-redaction", False) is not True
):
return result

File diff suppressed because one or more lines are too long