From b1d2eb8684abbc5ae27f836f7a44423bf333747d Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 28 Mar 2024 08:11:05 -0700 Subject: [PATCH] (feat) admin UI show models on team table --- ui/litellm-dashboard/src/components/teams.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsx index d1c02d17d40..80993c8915b 100644 --- a/ui/litellm-dashboard/src/components/teams.tsx +++ b/ui/litellm-dashboard/src/components/teams.tsx @@ -157,7 +157,7 @@ const Team: React.FC = ({ }; console.log(`received teams ${teams}`); return ( -
+
All Teams @@ -168,6 +168,7 @@ const Team: React.FC = ({ Team Name Spend (USD) Budget (USD) + Models TPM / RPM Limits @@ -176,22 +177,25 @@ const Team: React.FC = ({ {teams && teams.length > 0 ? teams.map((team: any) => ( - {team["team_alias"]} - {team["spend"]} - + {team["team_alias"]} + {team["spend"]} + {team["max_budget"] ? team["max_budget"] : "No limit"} - + + {JSON.stringify(team["models"] ? team["models"] : [])} + + TPM Limit:{" "} {team.tpm_limit ? team.tpm_limit : "Unlimited"}{" "} -

RPM Limit:{" "} +

RPM Limit:{" "} {team.rpm_limit ? team.rpm_limit : "Unlimited"}
- + {/* - + */}
)) : null} @@ -293,7 +297,7 @@ const Team: React.FC = ({ Member Name Role - Action + {/* Action */} @@ -310,9 +314,9 @@ const Team: React.FC = ({ : null} {member["role"]} - + {/* - + */} ) )