mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix - round spend to 2 decimals
This commit is contained in:
parent
b82dd29c99
commit
f54982a560
1 changed files with 2 additions and 0 deletions
|
@ -5552,10 +5552,12 @@ async def global_spend_per_tea():
|
||||||
# get the team_id for this entry
|
# get the team_id for this entry
|
||||||
# get the spend for this entry
|
# get the spend for this entry
|
||||||
spend = row["total_spend"]
|
spend = row["total_spend"]
|
||||||
|
spend = round(spend, 2)
|
||||||
current_date_entries = spend_by_date[row_date]
|
current_date_entries = spend_by_date[row_date]
|
||||||
current_date_entries[team_alias] = spend
|
current_date_entries[team_alias] = spend
|
||||||
else:
|
else:
|
||||||
spend = row["total_spend"]
|
spend = row["total_spend"]
|
||||||
|
spend = round(spend, 2)
|
||||||
spend_by_date[row_date] = {team_alias: spend}
|
spend_by_date[row_date] = {team_alias: spend}
|
||||||
|
|
||||||
if team_alias in total_spend_per_team:
|
if team_alias in total_spend_per_team:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue