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): remove Chat item from dashboard leftnav (#33647)

devin-ai-integration[bot]4d339648981c
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/components/SidebarProvider.tsx b/ui/litellm-dashboard/src/app/(dashboard)/components/SidebarProvider.tsx
index d14357b5026..4d407075d55 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/components/SidebarProvider.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/components/SidebarProvider.tsx
@@ -21,7 +21,6 @@ const SidebarProvider = ({
const { accessToken } = useAuthorized();
const [enabledPagesInternalUsers, setEnabledPagesInternalUsers] = useState<string[] | null>(null);
const [enableProjectsUI, setEnableProjectsUI] = useState<boolean>(false);
- const [enableChatUI, setEnableChatUI] = useState<boolean>(false);
const [disableAgentsForInternalUsers, setDisableAgentsForInternalUsers] = useState<boolean>(false);
const [allowAgentsForTeamAdmins, setAllowAgentsForTeamAdmins] = useState<boolean>(false);
const [disableVectorStoresForInternalUsers, setDisableVectorStoresForInternalUsers] = useState<boolean>(false);
@@ -46,10 +45,6 @@ const SidebarProvider = ({
setEnableProjectsUI(Boolean(settings.values.enable_projects_ui));
}
- if (settings?.values?.enable_chat_ui !== undefined) {
- setEnableChatUI(Boolean(settings.values.enable_chat_ui));
- }
-
if (settings?.values?.disable_agents_for_internal_users !== undefined) {
setDisableAgentsForInternalUsers(Boolean(settings.values.disable_agents_for_internal_users));
}
@@ -81,7 +76,6 @@ const SidebarProvider = ({
onToggleCollapsed={onToggleCollapsed}
enabledPagesInternalUsers={enabledPagesInternalUsers}
enableProjectsUI={enableProjectsUI}
- enableChatUI={enableChatUI}
disableAgentsForInternalUsers={disableAgentsForInternalUsers}
allowAgentsForTeamAdmins={allowAgentsForTeamAdmins}
disableVectorStoresForInternalUsers={disableVectorStoresForInternalUsers}
diff --git a/ui/litellm-dashboard/src/components/leftnav.test.tsx b/ui/litellm-dashboard/src/components/leftnav.test.tsx
index 36c1ade67a7..2692ad5c953 100644
--- a/ui/litellm-dashboard/src/components/leftnav.test.tsx
+++ b/ui/litellm-dashboard/src/components/leftnav.test.tsx
@@ -112,16 +112,6 @@ describe("Sidebar (leftnav)", () => {
});
});
- it("hides Chat by default", () => {
- renderWithProviders(<Sidebar {...defaultProps} />);
- expect(screen.queryByText("Chat")).not.toBeInTheDocument();
- });
-
- it("shows Chat when enableChatUI is true", () => {
- renderWithProviders(<Sidebar {...defaultProps} enableChatUI />);
- expect(screen.getByText("Chat")).toBeInTheDocument();
- });
-
it("expands a nested tab to reveal its children (Tools > Search Tools)", async () => {
renderWithProviders(<Sidebar {...defaultProps} />);
diff --git a/ui/litellm-dashboard/src/components/leftnav.tsx b/ui/litellm-dashboard/src/components/leftnav.tsx
index a2e2baf374e..76bfe174d5a 100644
--- a/ui/litellm-dashboard/src/components/leftnav.tsx
+++ b/ui/litellm-dashboard/src/components/leftnav.tsx
@@ -40,7 +40,6 @@ import {
HeartPulse,
KeyRound,
LayoutGrid,
- MessageSquare,
Network,
Palette,
PanelLeftClose,
@@ -88,7 +87,6 @@ interface SidebarProps {
onToggleCollapsed?: () => void;
enabledPagesInternalUsers?: string[] | null;
enableProjectsUI?: boolean;
- enableChatUI?: boolean;
disableAgentsForInternalUsers?: boolean;
allowAgentsForTeamAdmins?: boolean;
disableVectorStoresForInternalUsers?: boolean;
@@ -126,16 +124,6 @@ const menuGroups: MenuGroup[] = [
icon: <PlayCircle {...ICON} />,
roles: rolesWithWriteAccess,
},
- {
- key: "chat",
- page: "chat",
- label: (
- <span className="flex items-center gap-2">
- Chat <NewBadge />
- </span>
- ),
- icon: <MessageSquare {...ICON} />,
- },
{
key: "models",
page: "models",
@@ -389,7 +377,6 @@ const Sidebar_: React.FC<SidebarProps> = ({
onToggleCollapsed,
enabledPagesInternalUsers,
enableProjectsUI,
- enableChatUI,
disableAgentsForInternalUsers,
allowAgentsForTeamAdmins,
disableVectorStoresForInternalUsers,
@@ -444,7 +431,6 @@ const Sidebar_: React.FC<SidebarProps> = ({
return true;
}
if (item.key === "projects" && !enableProjectsUI) return false;
- if (item.key === "chat" && !enableChatUI) return false;
if (
!isAdmin &&
item.key === "agents" &&
diff --git a/ui/litellm-dashboard/src/components/page_metadata.ts b/ui/litellm-dashboard/src/components/page_metadata.ts
index 1b0734eb220..845e868b917 100644
--- a/ui/litellm-dashboard/src/components/page_metadata.ts
+++ b/ui/litellm-dashboard/src/components/page_metadata.ts
@@ -7,7 +7,6 @@
export const pageDescriptions: Record<string, string> = {
"api-keys": "Manage virtual keys for API access and authentication",
"llm-playground": "Interactive playground for testing LLM requests",
- chat: "Chat with an LLM and connect your own MCP server credentials via OAuth",
models: "Configure and manage LLM models and endpoints",
agents: "Create and manage AI agents",
agentic: "Manage agentic resources: agents, workflow runs, and memory",