From 8bfb00cdab0adaa2fa7cb9fce796c239a20bee3d Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 12 Mar 2024 17:42:31 -0700 Subject: [PATCH] (fix) default langfuse setting --- litellm/integrations/langfuse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/integrations/langfuse.py b/litellm/integrations/langfuse.py index efb5b29fe3..7c7f157940 100644 --- a/litellm/integrations/langfuse.py +++ b/litellm/integrations/langfuse.py @@ -33,6 +33,7 @@ class LangFuseLogger: host=self.langfuse_host, release=self.langfuse_release, debug=self.langfuse_debug, + flush_interval=1, # flush interval in seconds ) if os.getenv("UPSTREAM_LANGFUSE_SECRET_KEY") is not None: @@ -147,8 +148,6 @@ class LangFuseLogger: input, response_obj, ) - - self.Langfuse.flush() print_verbose( f"Langfuse Layer Logging - final response object: {response_obj}" )