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 FocusLogger dedup to use exact type match in litellm_logging.py
Harshit28j4a9d03f1b119
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex 7157f4cb633..81f85e3d5b9 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -3868,7 +3868,7 @@ def _init_custom_logger_compatible_class( # noqa: PLR0915from litellm.integrations.focus.focus_logger import FocusLoggerfor callback in _in_memory_loggers:- if isinstance(callback, FocusLogger):+ if type(callback) is FocusLogger: # exact match; exclude subclasses like VantageLoggerreturn callback # type: ignorefocus_logger = FocusLogger()_in_memory_loggers.append(focus_logger)@@ -4250,7 +4250,7 @@ def get_custom_logger_compatible_class( # noqa: PLR0915from litellm.integrations.focus.focus_logger import FocusLoggerfor callback in _in_memory_loggers:- if isinstance(callback, FocusLogger):+ if type(callback) is FocusLogger: # exact match; exclude subclasses like VantageLoggerreturn callbackelif logging_integration == "vantage":from litellm.integrations.vantage.vantage_logger import VantageLogger