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]

(UI) - Keys Page - Show 100 Keys Per Page, Use full height, increase width of key alias (#9064)

Ishaan Jaff0e7fd162f487
diff --git a/ui/litellm-dashboard/src/components/all_keys_table.tsx b/ui/litellm-dashboard/src/components/all_keys_table.tsx
index 274567b7326..1f05c243ee2 100644
--- a/ui/litellm-dashboard/src/components/all_keys_table.tsx
+++ b/ui/litellm-dashboard/src/components/all_keys_table.tsx
@@ -187,6 +187,14 @@ export function AllKeysTable({
</div>
),
},
+ {
+ header: "Key Alias",
+ accessorKey: "key_alias",
+ cell: (info) => {
+ const value = info.getValue() as string;
+ return <Tooltip title={value}>{value ? (value.length > 20 ? `${value.slice(0, 20)}...` : value) : "-"}</Tooltip>
+ }
+ },
{
header: "Secret Key",
accessorKey: "key_name",
@@ -206,12 +214,6 @@ export function AllKeysTable({
accessorKey: "team_id",
cell: (info) => <Tooltip title={info.getValue() as string}>{info.getValue() ? `${(info.getValue() as string).slice(0, 7)}...` : "-"}</Tooltip>
},
-
- {
- header: "Key Alias",
- accessorKey: "key_alias",
- cell: (info) => <Tooltip title={info.getValue() as string}>{info.getValue() ? `${(info.getValue() as string).slice(0, 7)}...` : "-"}</Tooltip>
- },
{
header: "Organization ID",
accessorKey: "organization_id",
@@ -370,7 +372,7 @@ export function AllKeysTable({
</div>
</div>
</div>
- <div className="h-[32rem] overflow-auto">
+ <div className="h-[75vh] overflow-auto">
<DataTable
columns={columns.filter(col => col.id !== 'expander')}
diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsx
index 8aadbc8438f..22e786dcbc4 100644
--- a/ui/litellm-dashboard/src/components/view_key_table.tsx
+++ b/ui/litellm-dashboard/src/components/view_key_table.tsx
@@ -412,7 +412,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
isLoading={isLoading}
pagination={pagination}
onPageChange={handlePageChange}
- pageSize={50}
+ pageSize={100}
teams={teams}
selectedTeam={selectedTeam}
setSelectedTeam={setSelectedTeam}