diff --git a/litellm/litellm_core_utils/redact_messages.py b/litellm/litellm_core_utils/redact_messages.py index 92a6f5c280..9c0df20112 100644 --- a/litellm/litellm_core_utils/redact_messages.py +++ b/litellm/litellm_core_utils/redact_messages.py @@ -63,4 +63,7 @@ def redact_message_input_output_from_logging( elif isinstance(choice, litellm.utils.StreamingChoices): choice.delta.content = "redacted-by-litellm" - return _result + return _result + + # by default return result + return result