From 4f41c3c5137e19ee6f004c3f85ff4c31d811666c Mon Sep 17 00:00:00 2001 From: Sihyeon Jang Date: Thu, 21 Dec 2023 16:07:15 +0900 Subject: [PATCH] fix: success_callback logic for cost_tracking Signed-off-by: Sihyeon Jang --- litellm/proxy/proxy_server.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 10b40321e..5f3902a9c 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -358,8 +358,6 @@ def cost_tracking(): print("setting litellm success callback to track cost") if (track_cost_callback) not in litellm.success_callback: # type: ignore litellm.success_callback.append(track_cost_callback) # type: ignore - else: - litellm.success_callback = track_cost_callback # type: ignore async def track_cost_callback( kwargs, # kwargs to completion