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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
revert(ui): drop the team-path join against /model_group/info
mateo-berri5b5f0004bad3
diff --git a/ui/litellm-dashboard/src/components/llm_calls/fetch_models.test.tsx b/ui/litellm-dashboard/src/components/llm_calls/fetch_models.test.tsxindex 2f35cf5ef6c..bd691c7f629 100644--- a/ui/litellm-dashboard/src/components/llm_calls/fetch_models.test.tsx+++ b/ui/litellm-dashboard/src/components/llm_calls/fetch_models.test.tsx@@ -1,5 +1,5 @@import { beforeEach, describe, expect, it, vi } from "vitest";-import { modelAvailableCall, modelHubCall } from "@/components/networking";+import { modelAvailableCall } from "@/components/networking";import { fetchAvailableModelsForTeam } from "./fetch_models";vi.mock("@/components/networking", () => ({@@ -31,38 +31,3 @@ describe("fetchAvailableModelsForTeam", () => {expect(await fetchAvailableModelsForTeam("token", "team-123")).toEqual([]);});});--describe("fetchAvailableModelsForTeam capability join", () => {- it("carries model-group capabilities onto team-allowed names that have a group entry", async () => {- modelAvailableCallMock.mockResolvedValue({ data: [{ id: "gpt-5-mini" }, { id: "team-only-byok" }] });- vi.mocked(modelHubCall).mockResolvedValue({- data: [- {- model_group: "gpt-5-mini",- mode: "chat",- supports_reasoning: true,- supported_reasoning_efforts: ["minimal", "low", "medium", "high"],- },- ],- });-- const models = await fetchAvailableModelsForTeam("token", "team-123");-- expect(models).toEqual([- {- model_group: "gpt-5-mini",- mode: "chat",- supports_reasoning: true,- supported_reasoning_efforts: ["minimal", "low", "medium", "high"],- },- { model_group: "team-only-byok" },- ]);- });-- it("keeps the team list usable when the group-info fetch fails", async () => {- modelAvailableCallMock.mockResolvedValue({ data: [{ id: "gpt-5-mini" }] });- vi.mocked(modelHubCall).mockRejectedValue(new Error("boom"));-- expect(await fetchAvailableModelsForTeam("token", "team-123")).toEqual([{ model_group: "gpt-5-mini" }]);- });-});diff --git a/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx b/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsxindex 93f89a44813..96b87887d43 100644--- a/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx+++ b/ui/litellm-dashboard/src/components/llm_calls/fetch_models.tsx@@ -29,23 +29,13 @@ const toModelGroup = (item: AvailableModel): ModelGroup => {};};-/**- * /models carries no capability metadata, so the team-allowed names are joined against- * /model_group/info (one extra parallel request; the endpoint has no team filter of its own, and it- * serves team-scoped tokens row-filtered, verified live). A name without a group entry keeps every- * capability field absent; a failed group fetch is console.error'd by fetchAvailableModels.- */export const fetchAvailableModelsForTeam = async (accessToken: string, teamId: string): Promise<ModelGroup[]> => {- const [response, groups] = await Promise.all([- modelAvailableCall(accessToken, "", "", false, teamId),- fetchAvailableModels(accessToken).catch(() => [] as ModelGroup[]),- ]);- const byGroup = new Map(groups.map((group) => [group.model_group, group]));+ 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) => byGroup.get(model) ?? { model_group: model });+ .map((model) => ({ model_group: model }));};/**