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]

Merge remote-tracking branch 'berri/litellm_internal_staging' into litellm_playground_shadcn

mubashir1osmani3725233736d1
diff --cc ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx
index 24f1e038f85,a1690b1307e..9fbaa868998
--- a/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx
+++ b/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx
@@@ -7,13 -8,15 +8,22 @@@ export interface ModelGroup
mode?: string;
}
+interface AvailableModel {
+ model_group?: string | null;
+ model_name?: string | null;
+ id?: string | null;
+ mode?: string | null;
+}
+
+ export const fetchAvailableModelsForTeam = async (accessToken: string, teamId: string): Promise<ModelGroup[]> => {
+ const response = await modelAvailableCall(accessToken, "", "", false, teamId);
+ const modelNames: string[] = (response?.data ?? []).map((model: { id: string }) => model.id);
+
+ return excludeProxyWideSentinel(Array.from(new Set(modelNames)))
+ .sort((a, b) => a.localeCompare(b))
+ .map((model) => ({ model_group: model }));
+ };
+
/**
* Fetches available models using modelHubCall and formats them for the selection dropdown.
*/