mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-18 18:23:18 +02:00
Add AI Provider and Virtual API Key actions to command palette
This commit is contained in:
@@ -1607,6 +1607,8 @@
|
||||
"commandPaletteCreateMachineClient": "Create Machine Client",
|
||||
"commandPaletteCreateAlertRule": "Create Alert Rule",
|
||||
"commandPaletteCreateIdentityProvider": "Create Identity Provider",
|
||||
"commandPaletteCreateAiProvider": "Create AI Provider",
|
||||
"commandPaletteCreateVirtualApiKey": "Create Virtual API Key",
|
||||
"commandPaletteToggleTheme": "Toggle Theme",
|
||||
"commandPaletteChooseOrganization": "Choose Organization",
|
||||
"commandPaletteShortcutMac": "⌘K",
|
||||
|
||||
@@ -11,6 +11,7 @@ import {
|
||||
KeyRound,
|
||||
MonitorUp,
|
||||
Plus,
|
||||
Sparkles,
|
||||
SunMoon,
|
||||
UserPlus
|
||||
} from "lucide-react";
|
||||
@@ -117,6 +118,18 @@ export function useCommandPaletteActions(
|
||||
icon: <KeyRound className="size-4" />,
|
||||
href: `/${orgId}/settings/api-keys/create`
|
||||
});
|
||||
actions.push({
|
||||
id: "create-ai-provider",
|
||||
label: t("commandPaletteCreateAiProvider"),
|
||||
icon: <Sparkles className="size-4" />,
|
||||
href: `/${orgId}/settings/ai-providers/create`
|
||||
});
|
||||
actions.push({
|
||||
id: "create-virtual-api-key",
|
||||
label: t("commandPaletteCreateVirtualApiKey"),
|
||||
icon: <KeyRound className="size-4" />,
|
||||
href: `/${orgId}/settings/virtual-api-keys/keys`
|
||||
});
|
||||
|
||||
if (!env?.flags.disableEnterpriseFeatures) {
|
||||
actions.push({
|
||||
|
||||
Reference in New Issue
Block a user