From b672cc0ca48b95c25aec6e4b74244f49ab012d63 Mon Sep 17 00:00:00 2001 From: Shivam Rawat <161387515+shivamrawat1@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:54:21 -0800 Subject: [PATCH] Update litellm/proxy/utils.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/utils.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 91e6ffa1cc5..e42704afc4a 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -464,18 +464,10 @@ class ProxyLogging: llm_router=llm_router, ) - 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(): litellm.callbacks[idx] = initialized_callback + litellm.logging_callback_manager.add_litellm_callback(initialized_callback) async def update_request_status( self, litellm_call_id: str, status: Literal["success", "fail"]