From 9ac5d30cb7b42750c7e5118c9304236edde90898 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 1 May 2024 20:32:52 -0700 Subject: [PATCH] fix - langfuse.py --- litellm/integrations/langfuse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/integrations/langfuse.py b/litellm/integrations/langfuse.py index 0fdfa24fd..e8bc72c2d 100644 --- a/litellm/integrations/langfuse.py +++ b/litellm/integrations/langfuse.py @@ -17,6 +17,7 @@ class LangFuseLogger: ): try: from langfuse import Langfuse + import langfuse except Exception as e: raise Exception( f"\033[91mLangfuse not installed, try running 'pip install langfuse' to fix this error: {e}\n{traceback.format_exc()}\033[0m" @@ -34,7 +35,7 @@ class LangFuseLogger: "host": self.langfuse_host, "release": self.langfuse_release, "debug": self.langfuse_debug, - "flush_interval": flush_interval, # flush interval in seconds + "flush_interval": flush_interval, # flush interval in seconds } if Version(langfuse.version.__version__) >= Version("2.6.0"):