From 86409976a9c3cb8688be35a10374ab85f29b0fc4 Mon Sep 17 00:00:00 2001 From: tanjiro <56165694+NANDINI-star@users.noreply.github.com> Date: Thu, 29 May 2025 08:31:31 +0900 Subject: [PATCH] put all proxy models if no models are selected. (#11187) --- .../components/organization/organization_view.tsx | 10 +++++++--- .../src/components/team/team_info.tsx | 14 +++++++++----- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ui/litellm-dashboard/src/components/organization/organization_view.tsx b/ui/litellm-dashboard/src/components/organization/organization_view.tsx index b30170a3ae9..00cb2a82fd1 100644 --- a/ui/litellm-dashboard/src/components/organization/organization_view.tsx +++ b/ui/litellm-dashboard/src/components/organization/organization_view.tsx @@ -226,11 +226,15 @@ const OrganizationInfoView: React.FC = ({ Models
- {orgData.models.map((model, index) => ( + {orgData.models.length === 0 ? ( + All proxy models + ) : ( + orgData.models.map((model, index) => ( - {model} + {model} - ))} + )) + )}
diff --git a/ui/litellm-dashboard/src/components/team/team_info.tsx b/ui/litellm-dashboard/src/components/team/team_info.tsx index d502097b8f5..1de0966f196 100644 --- a/ui/litellm-dashboard/src/components/team/team_info.tsx +++ b/ui/litellm-dashboard/src/components/team/team_info.tsx @@ -295,11 +295,15 @@ const TeamInfoView: React.FC = ({ Models
- {info.models.map((model, index) => ( - - {model} - - ))} + {info.models.length === 0 ? ( + All proxy models + ) : ( + info.models.map((model, index) => ( + + {model} + + )) + )}