The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
redact_standard_logging_payload_from_model_call_details
Ishaan Jaffer3f8f2d21859e
diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.pyindex 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_callbacfrom copy import copyfrom litellm import Choices, Message, ModelResponse- from litellm.types.utils import LiteLLMCommonStringsturn_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 presentmodel_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