mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix deep copy logic in during_call_hook
This commit is contained in:
parent
b18f3ef86d
commit
d257518e47
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue