mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(redact_messages.py): fix pr
This commit is contained in:
parent
9450d2cf77
commit
d857d82b0e
2 changed files with 151 additions and 60 deletions
|
|
@ -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…
Add table
Reference in a new issue