The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
allow setting LANGFUSE_FLUSH_INTERVAL (#5944)
Ishaan Jaff789ce6b7476c
diff --git a/litellm/integrations/langfuse.py b/litellm/integrations/langfuse.pyindex 0819cc703a0..d2343d42995 100644--- a/litellm/integrations/langfuse.py+++ b/litellm/integrations/langfuse.py@@ -44,6 +44,9 @@ class LangFuseLogger:self.langfuse_host = "http://" + self.langfuse_hostself.langfuse_release = os.getenv("LANGFUSE_RELEASE")self.langfuse_debug = os.getenv("LANGFUSE_DEBUG")+ self.langfuse_flush_interval = (+ os.getenv("LANGFUSE_FLUSH_INTERVAL") or flush_interval+ )parameters = {"public_key": self.public_key,@@ -51,7 +54,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": self.langfuse_flush_interval, # flush interval in seconds}if Version(langfuse.version.__version__) >= Version("2.6.0"):