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() Runs the CustomLogger's async_moderation_hook()
""" """
for callback in litellm.callbacks:
new_data = copy.deepcopy(data) new_data = copy.deepcopy(data)
for callback in litellm.callbacks:
try: try:
if isinstance(callback, CustomLogger): if isinstance(callback, CustomLogger):
await callback.async_moderation_hook( await callback.async_moderation_hook(