fix(redact_messages.py): fix pr
This commit is contained in:
parent
3c92467ae8
commit
c450dee681
@ -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
Loading…
Reference in New Issue
Block a user