From f54982a5604668ca71dfd8790447627ee450e238 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 22 Apr 2024 09:17:40 -0700 Subject: [PATCH 1/2] fix - round spend to 2 decimals --- litellm/proxy/proxy_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 7f8d7d4a369..d308bfafc66 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -5552,10 +5552,12 @@ async def global_spend_per_tea(): # get the team_id for this entry # get the spend for this entry spend = row["total_spend"] + spend = round(spend, 2) current_date_entries = spend_by_date[row_date] current_date_entries[team_alias] = spend else: spend = row["total_spend"] + spend = round(spend, 2) spend_by_date[row_date] = {team_alias: spend} if team_alias in total_spend_per_team: From 127a030a5f41dc77d9bb0e07eda69c00105dfa85 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 22 Apr 2024 09:53:05 -0700 Subject: [PATCH 2/2] ui - simplify team spend color scheme --- ui/litellm-dashboard/src/components/usage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/litellm-dashboard/src/components/usage.tsx b/ui/litellm-dashboard/src/components/usage.tsx index d245b1cac52..d96184b9a86 100644 --- a/ui/litellm-dashboard/src/components/usage.tsx +++ b/ui/litellm-dashboard/src/components/usage.tsx @@ -392,6 +392,7 @@ const UsagePage: React.FC = ({ index="date" categories={uniqueTeamIds} yAxisWidth={80} + colors={["blue", "green", "yellow", "red", "purple"]} stack={true} />