mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix maintain older usage of logfire
This commit is contained in:
parent
61ff712a08
commit
c93463b535
2 changed files with 48 additions and 8 deletions
|
@ -341,14 +341,6 @@ def function_setup(
|
|||
global callback_list, add_breadcrumb, user_logger_fn, Logging
|
||||
function_id = kwargs["id"] if "id" in kwargs else None
|
||||
|
||||
# Note: maintain backwards compatibility with logfire. some users use litellm.success_callback=["logfire"]
|
||||
if (
|
||||
litellm.success_callback is not None
|
||||
and "logfire" in litellm.success_callback
|
||||
):
|
||||
litellm.success_callback.remove("logfire")
|
||||
litellm.callbacks.append("logfire")
|
||||
|
||||
if len(litellm.callbacks) > 0:
|
||||
for callback in litellm.callbacks:
|
||||
# check if callback is a string - e.g. "lago", "openmeter"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue