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
fix req changes
Harshit Jainca4029a715d1
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex b7b336dbbe9..b2aee6bd2a0 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -3184,9 +3184,19 @@ class Logging(LiteLLMLoggingBaseClass):f"[LANGFUSE DEBUG] Langfuse logger kept: {self._get_callback_name(langfuse_logger_found)}")- # Don't use set() - it breaks deduplication for callback instances- # The filtering logic above already handles deduplication- return filtered+ # After Langfuse filtering, deduplicate remaining callbacks+ seen = set()+ final = []+ for cb in filtered:+ cb_id = id(cb) if not isinstance(cb, str) else cb+ if cb_id not in seen:+ seen.add(cb_id)+ final.append(cb)+ else:+ verbose_logger.debug(+ f"LiteLLM Logging: Skipping duplicate callback: {self._get_callback_name(cb)}"+ )+ return finaldef _remove_internal_litellm_callbacks(self, callbacks: List) -> List:"""