From d257518e47bcf96fe19a06c283e0747976b319fc Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 15 May 2024 17:34:54 -0700 Subject: [PATCH] fix deep copy logic in during_call_hook --- litellm/proxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 0555a485b5..29a07ba673 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -252,8 +252,8 @@ class ProxyLogging: """ Runs the CustomLogger's async_moderation_hook() """ + new_data = copy.deepcopy(data) for callback in litellm.callbacks: - new_data = copy.deepcopy(data) try: if isinstance(callback, CustomLogger): await callback.async_moderation_hook(