fix(litellm_logging.py): initialize global variables

Fixes https://github.com/BerriAI/litellm/issues/4281
This commit is contained in:
Krrish Dholakia 2024-06-19 18:39:45 -07:00
parent 05a4b6188e
commit 682ec33aa0
5 changed files with 99 additions and 3 deletions

View file

@ -542,6 +542,7 @@ def function_setup(
langfuse_public_key=kwargs.pop("langfuse_public_key", None),
langfuse_secret=kwargs.pop("langfuse_secret", None)
or kwargs.pop("langfuse_secret_key", None),
langfuse_host=kwargs.pop("langfuse_host", None),
)
## check if metadata is passed in
litellm_params = {"api_base": ""}