fix deep copy logic in during_call_hook

This commit is contained in:
Ishaan Jaff 2024-05-15 17:34:54 -07:00
parent 240b183d7a
commit 89dd1ffee8

View file

@ -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(