Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

put all proxy models if no models are selected. (#11187)

tanjiro86409976a9c3
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<OrganizationInfoProps> = ({
<Card>
<Text>Models</Text>
<div className="mt-2 flex flex-wrap gap-2">
- {orgData.models.map((model, index) => (
+ {orgData.models.length === 0 ? (
+ <Badge color="red">All proxy models</Badge>
+ ) : (
+ orgData.models.map((model, index) => (
<Badge key={index} color="red">
- {model}
+ {model}
</Badge>
- ))}
+ ))
+ )}
</div>
</Card>
<Card>
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<TeamInfoProps> = ({
<Card>
<Text>Models</Text>
<div className="mt-2 flex flex-wrap gap-2">
- {info.models.map((model, index) => (
- <Badge key={index} color="red">
- {model}
- </Badge>
- ))}
+ {info.models.length === 0 ? (
+ <Badge color="red">All proxy models</Badge>
+ ) : (
+ info.models.map((model, index) => (
+ <Badge key={index} color="red">
+ {model}
+ </Badge>
+ ))
+ )}
</div>
</Card>
</Grid>