From ad07e53da43cce5f667494b33115a6d281bded78 Mon Sep 17 00:00:00 2001 From: shivam Date: Sat, 14 Feb 2026 10:17:49 -0800 Subject: [PATCH] removed else branch --- litellm/proxy/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 91e6ffa1cc5..2d4a5f75d2a 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -466,12 +466,6 @@ class ProxyLogging: if initialized_callback is not None: string_callbacks_to_replace[idx] = initialized_callback - else: - # Only add non-string callbacks to the manager; string - # callbacks will be replaced in-place below and are already - # present in litellm.callbacks, so adding them to the manager - # (which appends to litellm.callbacks) would create duplicates. - litellm.logging_callback_manager.add_litellm_callback(callback) # Replace string entries in litellm.callbacks with initialized instances for idx, initialized_callback in string_callbacks_to_replace.items():