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
[Fix] UI - Keys: Organization shows Not Set due to org_id/organization_id mismatch
yuneng-jiang51d876ce7906
diff --git a/ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.tsx b/ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.tsxindex badaca93939..fe9d58b9791 100644--- a/ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.tsx+++ b/ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.tsx@@ -210,7 +210,7 @@ export function VirtualKeysTable({ teams, organizations, onSortChange, currentSo},{id: "organization_id",- accessorKey: "organization_id",+ accessorKey: "org_id",header: "Organization ID",size: 140,enableSorting: false,diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/filter_logic.tsx b/ui/litellm-dashboard/src/components/key_team_helpers/filter_logic.tsxindex cf4cee64811..cd55477208c 100644--- a/ui/litellm-dashboard/src/components/key_team_helpers/filter_logic.tsx+++ b/ui/litellm-dashboard/src/components/key_team_helpers/filter_logic.tsx@@ -96,7 +96,7 @@ export function useFilterLogic({// Apply Organization ID filterif (filters["Organization ID"]) {- result = result.filter((key) => key.organization_id === filters["Organization ID"]);+ result = result.filter((key) => (key.organization_id ?? key.org_id) === filters["Organization ID"]);}setFilteredKeys(result);diff --git a/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx b/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsxindex 08bccda7749..4cc3367f71d 100644--- a/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx+++ b/ui/litellm-dashboard/src/components/key_team_helpers/key_list.tsx@@ -47,6 +47,7 @@ export interface KeyResponse {blocked: boolean;litellm_budget_table: Record<string, unknown>;organization_id: string | null;+ org_id?: string | null;created_at: string;updated_at: string;last_active: string | null;diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsxindex ed88d03c1e7..5d00ab3d0b9 100644--- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx+++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx@@ -644,7 +644,7 @@ export default function KeyInfoView({<div><Text className="font-medium">Organization</Text>- <Text>{currentKeyData.organization_id || "Not Set"}</Text>+ <Text>{(currentKeyData.organization_id ?? currentKeyData.org_id) || "Not Set"}</Text></div><div>