Skip to content

Commit

Permalink
Merge pull request BerriAI#1211 from sihyeonn/fix/sh-success-callback
Browse files Browse the repository at this point in the history
fix: success_callback logic for cost_tracking
  • Loading branch information
krrishdholakia authored Dec 23, 2023
2 parents 8161753 + 4f41c3c commit 8afdc12
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,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
Expand Down

0 comments on commit 8afdc12

Please sign in to comment.