From 3f8f2d21859e1ba8361c3cf029c8a7f954f9d100 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 8 Nov 2025 13:49:59 -0800 Subject: [PATCH] redact_standard_logging_payload_from_model_call_details --- litellm/integrations/custom_logger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.py index c425a806352..052b3f0f1f0 100644 --- a/litellm/integrations/custom_logger.py +++ b/litellm/integrations/custom_logger.py @@ -536,7 +536,6 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac from copy import copy from litellm import Choices, Message, ModelResponse - from litellm.types.utils import LiteLLMCommonStrings turn_off_message_logging: bool = getattr(self, "turn_off_message_logging", False) if turn_off_message_logging is False: @@ -545,7 +544,7 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac # Only make a shallow copy of the top-level dict to avoid deepcopy issues # with complex objects like AuthenticationError that may be present model_call_details_copy = copy(model_call_details) - redacted_str = LiteLLMCommonStrings.redacted_by_litellm.value + redacted_str = "redacted-by-litellm" standard_logging_object = model_call_details.get("standard_logging_object") if standard_logging_object is None: return model_call_details_copy