Skip to content

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]

Update litellm/litellm_core_utils/litellm_logging.py

Harshit Jainb753d8e413ce
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py
index ed8ef994b0f..b7b336dbbe9 100644
--- a/litellm/litellm_core_utils/litellm_logging.py
+++ b/litellm/litellm_core_utils/litellm_logging.py
@@ -3152,11 +3152,12 @@ class Logging(LiteLLMLoggingBaseClass):
cb_name = self._get_callback_name(cb)
# Check if this is a Langfuse logger (vanilla or OTEL)
- is_langfuse = (
- cb_name.lower()
- in ["langfuse", "langfuselogger", "langfuse_otel", "langfuseotellogger"]
- or "langfuse" in cb_name.lower()
- )
+ is_langfuse = cb_name.lower() in [
+ "langfuse",
+ "langfuselogger",
+ "langfuse_otel",
+ "langfuseotellogger",
+ ]
if is_langfuse:
if langfuse_logger_found is None: