From 1bbdbcad7d355d22407bf208abe4d4197f1c94c5 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 30 Mar 2024 14:00:22 -0700 Subject: [PATCH] (ui) fix models page --- .../src/components/model_dashboard.tsx | 41 ++++++++----------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index ee87f15ca18..93d93ca43b7 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -6,9 +6,11 @@ import { Table, TableHead, TableRow, + TableHeaderCell, TableCell, TableBody, Metric, + Text, Grid, } from "@tremor/react"; import { modelInfoCall, userGetRequesedtModelsCall, modelMetricsCall } from "./networking"; @@ -146,39 +148,32 @@ const ModelDashboard: React.FC = ({ - - Model Name - - - Provider - + + Model Name + + + Provider + { userRole === "Admin" && ( - - API Base - + + API Base + ) } - - - Access - - - Input Price per token ($) - - - Output Price per token ($) - - - Max Tokens - + + Access + + Input Price per token ($) + Output Price per token ($) + Max Tokens {modelData.data.map((model: any) => ( - {model.model_name} + {model.model_name} {model.provider} {