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
manualSorting fix. Filtering fetching fix
Alejandro Tapiaa1f5450b4001
diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts b/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.tsindex dd3766592bf..0a5590d78ce 100644--- a/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts+++ b/ui/litellm-dashboard/src/components/key_team_helpers/filter_helpers.ts@@ -8,9 +8,13 @@ export interface TeamFilterOptions {userIds: Array<{ id: string; email: string }>;}+const FILTER_OPTIONS_PAGE_SIZE = 100; // API max per page+const MAX_PAGES = 50; // Cap at 5000 keys to avoid unbounded fetches+/**- * Fetches filter options (key aliases, org IDs, user IDs) scoped to a team's keys.- * Used by TeamVirtualKeysTable to show only relevant filter options.+ * Fetches filter options (key aliases, org IDs, user IDs) from all team keys.+ * Paginates through pages to build complete dropdowns. Capped at 50 pages+ * (5000 keys) to limit load for very large teams.*/export const fetchTeamFilterOptions = async (accessToken: string | null,@@ -23,10 +27,8 @@ export const fetchTeamFilterOptions = async (try {const keyAliases = new Set<string>();const organizationIds = new Set<string>();- const userMap = new Map<string, string>(); // user_id -> user_email+ const userMap = new Map<string, string>();- const MAX_PAGES = 1; // Cap at 20 keys on load to avoid heavy fetches- const PAGE_SIZE = 20;let page = 1;let totalPages = 1;@@ -39,7 +41,7 @@ export const fetchTeamFilterOptions = async (null,null,page,- PAGE_SIZE,+ FILTER_OPTIONS_PAGE_SIZE,null,null,"user",diff --git a/ui/litellm-dashboard/src/components/team/TeamVirtualKeysTable.tsx b/ui/litellm-dashboard/src/components/team/TeamVirtualKeysTable.tsxindex 74100069779..de3061a003d 100644--- a/ui/litellm-dashboard/src/components/team/TeamVirtualKeysTable.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamVirtualKeysTable.tsx@@ -571,7 +571,7 @@ export function TeamVirtualKeysTable({ teamId, teamAlias, organization }: TeamVigetCoreRowModel: getCoreRowModel(),getSortedRowModel: getSortedRowModel(),enableSorting: true,- manualSorting: false,+ manualSorting: true, // Server sorts via useKeys. Avoid redundant client-side sortmanualPagination: true,pageCount: pageCount,});