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]

fix(ui): keep user id boundaries in email lookup query key

Devin AIbde96e3197bf
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/hooks/users/useUsers.ts b/ui/litellm-dashboard/src/app/(dashboard)/hooks/users/useUsers.ts
index 4a28e7ff3f2..84aeba90ae2 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/hooks/users/useUsers.ts
+++ b/ui/litellm-dashboard/src/app/(dashboard)/hooks/users/useUsers.ts
@@ -44,7 +44,7 @@ export const useUserEmailLookup = (userIds: readonly string[]) => {
const { accessToken, userRole } = useAuthorized();
const distinctIds = Array.from(new Set(userIds.filter((id) => id !== ""))).sort();
return useQuery<Record<string, string>>({
- queryKey: userLookupKeys.list({ filters: { ids: distinctIds.join(",") } }),
+ queryKey: userLookupKeys.list({ filters: { ids: JSON.stringify(distinctIds) } }),
queryFn: async () => {
const ids = distinctIds.slice(0, USER_LIST_MAX_PAGE_SIZE);
const response = await userListCall(accessToken!, ids, 1, ids.length);