mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix langsmith logging for streaming
This commit is contained in:
parent
9c00fb64c4
commit
5f04f7b7c1
2 changed files with 21 additions and 2 deletions
|
@ -427,6 +427,11 @@ def function_setup(
|
|||
isinstance(cb, type(callback_class)) for cb in litellm.callbacks
|
||||
):
|
||||
litellm.callbacks.append(callback_class) # type: ignore
|
||||
litellm.input_callback.append(callback_class) # type: ignore
|
||||
litellm.success_callback.append(callback_class) # type: ignore
|
||||
litellm.failure_callback.append(callback_class) # type: ignore
|
||||
litellm._async_success_callback.append(callback_class) # type: ignore
|
||||
litellm._async_failure_callback.append(callback_class) # type: ignore
|
||||
|
||||
# Pop the async items from success_callback in reverse order to avoid index issues
|
||||
for index in reversed(removed_async_items):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue