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
renamed (console), added use clients
Achintya Rajanf4d9e4869ad7
diff --git a/ui/litellm-dashboard/src/app/(console)/components/Sidebar2.tsx b/ui/litellm-dashboard/src/app/dashboard/components/Sidebar2.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/components/Sidebar2.tsxrename to ui/litellm-dashboard/src/app/dashboard/components/Sidebar2.tsxindex b2477243a0e..9de9f2f1368 100644--- a/ui/litellm-dashboard/src/app/(console)/components/Sidebar2.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/components/Sidebar2.tsx@@ -1,3 +1,5 @@+"use client";+import React from "react";import Link from "next/link";import { usePathname, useSearchParams } from "next/navigation";@@ -216,7 +218,7 @@ const Sidebar2: React.FC<SidebarProps> = ({ accessToken, userRole, defaultSelect};const selectedMenuKey =- pathname === "/virtual-keys"+ pathname === "/dashboard/virtual-keys"? "1": pageParam? findMenuItemKey(pageParam)diff --git a/ui/litellm-dashboard/src/app/(console)/components/SidebarProvider.tsx b/ui/litellm-dashboard/src/app/dashboard/components/SidebarProvider.tsxsimilarity index 82%rename from ui/litellm-dashboard/src/app/(console)/components/SidebarProvider.tsxrename to ui/litellm-dashboard/src/app/dashboard/components/SidebarProvider.tsxindex a5e150da86c..83804937986 100644--- a/ui/litellm-dashboard/src/app/(console)/components/SidebarProvider.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/components/SidebarProvider.tsx@@ -1,8 +1,10 @@-import Sidebar2 from "@/app/(console)/components/Sidebar2";+"use client";++import Sidebar2 from "@/app/dashboard/components/Sidebar2";import Sidebar from "@/components/leftnav";import React from "react";import useFeatureFlags from "@/hooks/useFeatureFlags";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";interface SidebarProviderProps {defaultSelectedKey: string;diff --git a/ui/litellm-dashboard/src/app/(console)/components/modals/CreateUserModal.tsx b/ui/litellm-dashboard/src/app/dashboard/components/modals/CreateUserModal.tsxsimilarity index 98%rename from ui/litellm-dashboard/src/app/(console)/components/modals/CreateUserModal.tsxrename to ui/litellm-dashboard/src/app/dashboard/components/modals/CreateUserModal.tsxindex 4caaceb662f..8b16074b25d 100644--- a/ui/litellm-dashboard/src/app/(console)/components/modals/CreateUserModal.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/components/modals/CreateUserModal.tsx@@ -1,3 +1,5 @@+"use client";+// TODO: refactorimport React, { useState, useEffect } from "react";import { Button, Modal, Form, Input, message, Select, InputNumber, Select as Select2 } from "antd";@@ -27,9 +29,9 @@ import {} from "@/components/networking";import { getModelDisplayName } from "@/components/key_team_helpers/fetch_available_models_team_key";import BulkCreateUsersButton from "@/components/bulk_create_users_button";-import { fetchTeams } from "@/app/(console)/virtual-keys/networking";-import useTeams from "@/app/(console)/virtual-keys/hooks/useTeams";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { fetchTeams } from "@/app/dashboard/virtual-keys/networking";+import useTeams from "@/app/dashboard/virtual-keys/hooks/useTeams";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";// Helper function to generate UUID compatible across all environmentsconst generateUUID = (): string => {diff --git a/ui/litellm-dashboard/src/app/(console)/hooks/useAuthorized.ts b/ui/litellm-dashboard/src/app/dashboard/hooks/useAuthorized.tssimilarity index 94%rename from ui/litellm-dashboard/src/app/(console)/hooks/useAuthorized.tsrename to ui/litellm-dashboard/src/app/dashboard/hooks/useAuthorized.tsindex 45f5ee92ea6..9d436d0566f 100644--- a/ui/litellm-dashboard/src/app/(console)/hooks/useAuthorized.ts+++ b/ui/litellm-dashboard/src/app/dashboard/hooks/useAuthorized.ts@@ -1,4 +1,5 @@-import { Router } from "next/router";+"use client";+import { getCookie } from "@/utils/cookieUtils";import { useRouter } from "next/navigation";import { jwtDecode } from "jwt-decode";diff --git a/ui/litellm-dashboard/src/app/(console)/layout.tsx b/ui/litellm-dashboard/src/app/dashboard/layout.tsxsimilarity index 86%rename from ui/litellm-dashboard/src/app/(console)/layout.tsxrename to ui/litellm-dashboard/src/app/dashboard/layout.tsxindex 595eeedc596..851ecec6654 100644--- a/ui/litellm-dashboard/src/app/(console)/layout.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/layout.tsx@@ -3,9 +3,8 @@import React from "react";import Navbar from "@/components/navbar";import { ThemeProvider } from "@/contexts/ThemeContext";-import Sidebar2 from "@/app/(console)/components/Sidebar2";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";-import useFeatureFlags, { FeatureFlagsProvider } from "@/hooks/useFeatureFlags";+import Sidebar2 from "@/app/dashboard/components/Sidebar2";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export default function Layout({ children }: { children: React.ReactNode }) {const { accessToken, userRole } = useAuthorized();diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKey.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKey.tsxsimilarity index 94%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKey.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKey.tsxindex c8e0b1d8ce5..15dd7139174 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKey.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKey.tsx@@ -6,9 +6,9 @@ import { Modal, Form } from "antd";import { getPossibleUserRoles, Organization } from "@/components/networking";import { rolesWithWriteAccess } from "@/utils/roles";import { Team } from "@/components/key_team_helpers/key_list";-import CreateKeyModal from "@/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyModal";-import CreateUserModal from "@/app/(console)/components/modals/CreateUserModal";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import CreateKeyModal from "@/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyModal";+import CreateUserModal from "@/app/dashboard/components/modals/CreateUserModal";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";interface CreateKeyProps {team: Team | null;diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsxindex 54e9aaefed7..33a8ae06cf9 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection.tsx@@ -1,3 +1,5 @@+"use client";+import { TextInput, Title } from "@tremor/react";import { Form, FormInstance, Select, Tooltip } from "antd";import { InfoCircleOutlined } from "@ant-design/icons";diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsxindex c879cdf5955..65ebd2d5717 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection.tsx@@ -1,3 +1,5 @@+"use client";+import { Accordion, AccordionBody, AccordionHeader, Text, Title } from "@tremor/react";import { Form, FormInstance, Input, Select, Tooltip } from "antd";import { InfoCircleOutlined } from "@ant-design/icons";@@ -15,7 +17,7 @@ import SchemaFormFields from "@/components/common_components/check_openapi_schemimport { Team } from "@/components/key_team_helpers/key_list";import React from "react";import { DefaultOptionType } from "rc-select/lib/Select";-import { ModelAliases } from "@/app/(console)/virtual-keys/components/CreateKeyModal/types";+import { ModelAliases } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/types";export interface OptionalSettingsSectionProps {form: FormInstance;diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsxsimilarity index 98%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsxindex fdfb3893f69..00c2e9a1e2b 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection.tsx@@ -1,10 +1,12 @@+"use client";+import { Button as Button2, Form, Radio, Select, Tooltip } from "antd";import { Title } from "@tremor/react";import { InfoCircleOutlined } from "@ant-design/icons";import TeamDropdown from "@/components/common_components/team_dropdown";import React from "react";import { Team } from "@/components/key_team_helpers/key_list";-import { UserOption } from "@/app/(console)/virtual-keys/components/CreateKeyModal/types";+import { UserOption } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/types";interface OwnershipSectionProps {team: Team | null;diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsxsimilarity index 91%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsxindex 9f4d7528a8f..2bee7f72b14 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyModal.tsx@@ -1,9 +1,11 @@+"use client";+import { Button as Button2, Form, FormInstance, Modal } from "antd";import { Text } from "@tremor/react";import { keyCreateCall, keyCreateServiceAccountCall } from "@/components/networking";import React, { useEffect, useState } from "react";import { Team } from "@/components/key_team_helpers/key_list";-import SaveKeyModal from "@/app/(console)/virtual-keys/components/SaveKeyModal";+import SaveKeyModal from "@/app/dashboard/virtual-keys/components/SaveKeyModal";import NotificationsManager from "@/components/molecules/notifications_manager";import {useGuardrailsAndPrompts,@@ -11,15 +13,15 @@ import {useTeamModels,useUserModels,useUserSearch,-} from "@/app/(console)/virtual-keys/components/CreateKeyModal/hooks";-import OwnershipSection from "@/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection";-import KeyDetailsSection from "@/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection";-import OptionalSettingsSection from "@/app/(console)/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection";-import { ModelAliases } from "@/app/(console)/virtual-keys/components/CreateKeyModal/types";-import { getPredefinedTags, prepareFormValues } from "@/app/(console)/virtual-keys/components/CreateKeyModal/utils";-import { fetchTeams } from "@/app/(console)/virtual-keys/networking";-import useTeams from "@/app/(console)/virtual-keys/hooks/useTeams";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+} from "@/app/dashboard/virtual-keys/components/CreateKeyModal/hooks";+import OwnershipSection from "@/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OwnershipSection";+import KeyDetailsSection from "@/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/KeyDetailsSection";+import OptionalSettingsSection from "@/app/dashboard/virtual-keys/components/CreateKeyModal/CreateKeyForm/OptionalSettingsSection";+import { ModelAliases } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/types";+import { getPredefinedTags, prepareFormValues } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/utils";+import { fetchTeams } from "@/app/dashboard/virtual-keys/networking";+import useTeams from "@/app/dashboard/virtual-keys/hooks/useTeams";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export interface CreateKeyModalProps {isModalVisible: boolean;diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/index.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/index.tssimilarity index 100%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/index.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/index.tsdiff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.tssimilarity index 83%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.tsindex d092219f70b..2445240e1ee 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useGuardrailsAndPrompts.ts@@ -1,6 +1,6 @@import { useEffect, useState } from "react";-import { fetchGuardrails, fetchPrompts } from "@/app/(console)/virtual-keys/components/CreateKeyModal/networking";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { fetchGuardrails, fetchPrompts } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/networking";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export const useGuardrailsAndPrompts = () => {const [guardrails, setGuardrails] = useState<string[]>([]);diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.tssimilarity index 80%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.tsindex 8313f6e8d6d..50070400004 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useMcpAccessGroups.ts@@ -1,6 +1,6 @@import { useEffect, useState } from "react";-import { getMCPAccessGroups } from "@/app/(console)/virtual-keys/components/CreateKeyModal/networking";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { getMCPAccessGroups } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/networking";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export const useMcpAccessGroups = () => {const [mcpAccessGroups, setMcpAccessGroups] = useState<string[]>([]);diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.tssimilarity index 89%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.tsindex c28ef0ecdb2..979337f5aad 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useTeamModels.ts@@ -1,7 +1,7 @@import { useEffect, useMemo, useState } from "react";import type { Team } from "@/components/key_team_helpers/key_list";-import { fetchTeamModels } from "@/app/(console)/virtual-keys/components/CreateKeyModal/networking";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { fetchTeamModels } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/networking";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export const useTeamModels = (selectedTeam: Team | null) => {const { userId: userID, userRole, accessToken } = useAuthorized();diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserModels.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserModels.tssimilarity index 81%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserModels.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserModels.tsindex ddba6879cc9..badcaf93d9b 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserModels.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserModels.ts@@ -1,6 +1,6 @@import { useEffect, useState } from "react";-import { getUserModelNames } from "@/app/(console)/virtual-keys/components/CreateKeyModal/networking";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { getUserModelNames } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/networking";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";export const useUserModels = () => {const { userId: userID, userRole, accessToken } = useAuthorized();diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.tssimilarity index 89%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.tsindex 782beccf48f..a3840bdc624 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/hooks/useUserSearch.ts@@ -1,7 +1,7 @@import { useEffect, useMemo, useState } from "react";import { debounce } from "lodash";-import { searchUserOptionsByEmail } from "@/app/(console)/virtual-keys/components/CreateKeyModal/networking";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import { searchUserOptionsByEmail } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/networking";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";type User = { user_id: string; user_email: string; role?: string };export interface UserOption {diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/networking.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/networking.tssimilarity index 95%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/networking.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/networking.tsindex 6cb4e2f7f07..2277800dad7 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/networking.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/networking.ts@@ -6,7 +6,7 @@ import {User,userFilterUICall,} from "@/components/networking";-import { ModelAvailableResponse, UserOption } from "@/app/(console)/virtual-keys/components/CreateKeyModal/types";+import { ModelAvailableResponse, UserOption } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/types";export const fetchGuardrails = async (accessToken: string) => {try {diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/types.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/types.tssimilarity index 100%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/types.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/types.tsdiff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/utils.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/utils.tssimilarity index 98%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/utils.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/utils.tsindex 066770cf468..73cd433e78e 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/CreateKeyModal/utils.ts+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/CreateKeyModal/utils.ts@@ -1,5 +1,5 @@import { mapDisplayToInternalNames } from "@/components/callback_info_helpers";-import { ModelAliases } from "@/app/(console)/virtual-keys/components/CreateKeyModal/types";+import { ModelAliases } from "@/app/dashboard/virtual-keys/components/CreateKeyModal/types";export const getPredefinedTags = (data: any[] | null) => {let allTags = [];diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/KeyInfoView.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/KeyInfoView.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/KeyInfoView.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/KeyInfoView.tsxindex 1c7185f1dc4..9f9a47fbe10 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/KeyInfoView.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/KeyInfoView.tsx@@ -1,3 +1,5 @@+"use client";+import React, { useEffect, useState } from "react";import {Card,diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/SaveKeyModal.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/SaveKeyModal.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/SaveKeyModal.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/SaveKeyModal.tsxindex bd0d425c465..fed678aadca 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/SaveKeyModal.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/SaveKeyModal.tsx@@ -1,3 +1,5 @@+"use client";+import { Button, Col, Grid, Text, Title } from "@tremor/react";import { CopyToClipboard } from "react-copy-to-clipboard";import { Modal } from "antd";diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsxsimilarity index 99%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsxindex cdbd7cee434..b7727a299bf 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/VirtualKeysTable/VirtualKeysTable.tsx@@ -1,5 +1,5 @@-// TODO: refactor"use client";+// TODO: refactorimport React, { useEffect, useState } from "react";import { ColumnDef } from "@tanstack/react-table";@@ -16,9 +16,9 @@ import { Organization, userListCall } from "@/components/networking";import { getModelDisplayName } from "@/components/key_team_helpers/fetch_available_models_team_key";import FilterComponent, { FilterOption } from "@/components/molecules/filter";import { useFilterLogic } from "@/components/key_team_helpers/filter_logic";-import useTeams from "@/app/(console)/virtual-keys/hooks/useTeams";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";-import KeyInfoView from "@/app/(console)/virtual-keys/components/KeyInfoView";+import useTeams from "@/app/dashboard/virtual-keys/hooks/useTeams";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";+import KeyInfoView from "@/app/dashboard/virtual-keys/components/KeyInfoView";interface AllKeysTableProps {keys: KeyResponse[];diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/components/VirtualKeysTable/hooks/useFilterLogic.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/VirtualKeysTable/hooks/useFilterLogic.tssimilarity index 100%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/components/VirtualKeysTable/hooks/useFilterLogic.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/components/VirtualKeysTable/hooks/useFilterLogic.tsdiff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/hooks/useTeams.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/hooks/useTeams.tsxsimilarity index 79%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/hooks/useTeams.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/hooks/useTeams.tsxindex d1208737ec2..92e5896e764 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/hooks/useTeams.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/hooks/useTeams.tsx@@ -1,7 +1,7 @@import { useEffect, useState } from "react";-import { fetchTeams } from "@/app/(console)/virtual-keys/networking";+import { fetchTeams } from "@/app/dashboard/virtual-keys/networking";import { Team } from "@/components/key_team_helpers/key_list";-import useAuthorized from "@/app/(console)/hooks/useAuthorized";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized";const useTeams = () => {const [teams, setTeams] = useState<Team[]>([]);diff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/networking.ts b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/networking.tssimilarity index 100%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/networking.tsrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/networking.tsdiff --git a/ui/litellm-dashboard/src/app/(console)/virtual-keys/page.tsx b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/page.tsxsimilarity index 81%rename from ui/litellm-dashboard/src/app/(console)/virtual-keys/page.tsxrename to ui/litellm-dashboard/src/app/dashboard/virtual-keys/page.tsxindex 9554905088b..7dfc959867c 100644--- a/ui/litellm-dashboard/src/app/(console)/virtual-keys/page.tsx+++ b/ui/litellm-dashboard/src/app/dashboard/virtual-keys/page.tsx@@ -1,15 +1,12 @@"use client";-import VirtualKeysTable from "@/app/(console)/virtual-keys/components/VirtualKeysTable/VirtualKeysTable";-import { getCookie } from "@/utils/cookieUtils";-import { jwtDecode } from "jwt-decode";+import VirtualKeysTable from "@/app/dashboard/virtual-keys/components/VirtualKeysTable/VirtualKeysTable";import { useState } from "react";import useKeyList from "@/components/key_team_helpers/key_list";-import { useRouter } from "next/navigation";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { Col, Grid } from "@tremor/react";-import CreateKey from "@/app/(console)/virtual-keys/components/CreateKey";-import useAuthorized from "@/app/(console)/hooks/useAuthorized"+import CreateKey from "@/app/dashboard/virtual-keys/components/CreateKey";+import useAuthorized from "@/app/dashboard/hooks/useAuthorized"const VirtualKeysPage = () => {const {accessToken, userRole} = useAuthorized();diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsxindex eff997a3aaf..3815df002bd 100644--- a/ui/litellm-dashboard/src/app/page.tsx+++ b/ui/litellm-dashboard/src/app/page.tsx@@ -40,8 +40,8 @@ import UIThemeSettings from "@/components/ui_theme_settings";import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";import { cx } from "@/lib/cva.config";import useFeatureFlags, { FeatureFlagsProvider } from "@/hooks/useFeatureFlags";-import Sidebar2 from "@/app/(console)/components/Sidebar2";-import SidebarProvider from "@/app/(console)/components/SidebarProvider";+import Sidebar2 from "@/app/dashboard/components/Sidebar2";+import SidebarProvider from "@/app/dashboard/components/SidebarProvider";function getCookie(name: string) {const cookieValue = document.cookie.split("; ").find((row) => row.startsWith(name + "="));diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsxindex 20c1f5b3a36..d4035e83f09 100644--- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx+++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx@@ -135,7 +135,7 @@ export const fetchUserModels = async (/*** ─────────────────────────────────────────────────────────────────────────* @deprecated- * This component is being DEPRECATED in favor of src/app/(console)/virtual-keys/components/CreateKey.tsx+ * This component is being DEPRECATED in favor of src/app/dashboard/virtual-keys/components/CreateKey.tsx* Please contribute to the new refactor.* ─────────────────────────────────────────────────────────────────────────*/diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsxindex 0080924fb61..ba04e2644a8 100644--- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx+++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx@@ -50,7 +50,7 @@ interface KeyInfoViewProps {/*** ─────────────────────────────────────────────────────────────────────────* @deprecated- * This component is being DEPRECATED in favor of src/app/(console)/virtual-keys/components/KeyInfoView.tsx+ * This component is being DEPRECATED in favor of src/app/dashboard/virtual-keys/components/KeyInfoView.tsx* Please contribute to the new refactor.* ─────────────────────────────────────────────────────────────────────────*/diff --git a/ui/litellm-dashboard/src/components/templates/view_key_table.tsx b/ui/litellm-dashboard/src/components/templates/view_key_table.tsxindex f3ba12d56d5..3fad7c0a35e 100644--- a/ui/litellm-dashboard/src/components/templates/view_key_table.tsx+++ b/ui/litellm-dashboard/src/components/templates/view_key_table.tsx@@ -138,7 +138,7 @@ interface CombinedLimits {/*** ─────────────────────────────────────────────────────────────────────────* @deprecated- * This component is being DEPRECATED in favor of src/app/(console)/virtual-keys/components/VirtualKeysTable/+ * This component is being DEPRECATED in favor of src/app/dashboard/virtual-keys/components/VirtualKeysTable/* Please contribute to the new refactor.* ─────────────────────────────────────────────────────────────────────────*/