Skip to content

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]

run during_call_hook

Ishaan Jaff507fab06f845
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py
index 94862db9ac2..a2b09b4e697 100644
--- a/litellm/proxy/utils.py
+++ b/litellm/proxy/utils.py
@@ -432,12 +432,11 @@ class ProxyLogging:
"""
Runs the CustomLogger's async_moderation_hook()
"""
- new_data = safe_deep_copy(data)
for callback in litellm.callbacks:
try:
if isinstance(callback, CustomLogger):
await callback.async_moderation_hook(
- data=new_data,
+ data=data,
user_api_key_dict=user_api_key_dict,
call_type=call_type,
)