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
Merge pull request #35041 from BerriAI/litellm_/ui-perf-regression-d7888c
yuneng-jiang74244ddd4579
diff --git a/ui/litellm-dashboard/src/components/leftnav.test.tsx b/ui/litellm-dashboard/src/components/leftnav.test.tsxindex 2c8fe52f97f..87c830e69de 100644--- a/ui/litellm-dashboard/src/components/leftnav.test.tsx+++ b/ui/litellm-dashboard/src/components/leftnav.test.tsx@@ -80,6 +80,12 @@ describe("Sidebar (leftnav)", () => {collapsed: false,};+ it("should link the logo to the UI home route rather than the proxy origin", () => {+ renderWithProviders(<Sidebar {...defaultProps} />);++ expect(screen.getByRole("link", { name: /litellm home/i })).toHaveAttribute("href", "/ui");+ });+it("renders all top-level (non-nested) tabs for admin", () => {renderWithProviders(<Sidebar {...defaultProps} />);diff --git a/ui/litellm-dashboard/src/components/leftnav.tsx b/ui/litellm-dashboard/src/components/leftnav.tsxindex 4aa15f5fc28..af76fccf9eb 100644--- a/ui/litellm-dashboard/src/components/leftnav.tsx+++ b/ui/litellm-dashboard/src/components/leftnav.tsx@@ -582,7 +582,7 @@ const Sidebar_: React.FC<SidebarProps> = ({<SidebarHeader className="h-14 border-b border-border group-data-[collapsed=true]/sidebar:h-auto"><div className="flex items-center justify-between gap-2 group-data-[collapsed=true]/sidebar:flex-col"><div className="flex min-w-0 items-center gap-2">- <Link href={baseUrl || "/"} className="flex min-w-0 items-center" aria-label="LiteLLM home">+ <Link href={migratedHref("")} className="flex min-w-0 items-center" aria-label="LiteLLM home"><imgsrc={logoSrc}alt="LiteLLM"diff --git a/ui/litellm-dashboard/src/components/navbar.test.tsx b/ui/litellm-dashboard/src/components/navbar.test.tsxindex ba0b4bf55f5..4a8fe2a6094 100644--- a/ui/litellm-dashboard/src/components/navbar.test.tsx+++ b/ui/litellm-dashboard/src/components/navbar.test.tsx@@ -152,6 +152,12 @@ describe("Navbar", () => {expect(screen.getByRole("button", { name: /open account menu/i })).toBeInTheDocument();});+ it("should link the logo to the UI home route rather than the proxy origin", () => {+ renderWithProviders(<Navbar {...defaultProps} />);++ expect(screen.getByRole("link", { name: /litellm brand/i })).toHaveAttribute("href", "/ui");+ });+it("should display user information in dropdown", async () => {const user = userEvent.setup();renderWithProviders(<Navbar {...defaultProps} />);diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsxindex 40638e7b8ba..c999ee8035e 100644--- a/ui/litellm-dashboard/src/components/navbar.tsx+++ b/ui/litellm-dashboard/src/components/navbar.tsx@@ -3,6 +3,7 @@ import { useDisableBouncingIcon } from "@/app/(dashboard)/hooks/useDisableBounciimport { useDisableShowPrompts } from "@/app/(dashboard)/hooks/useDisableShowPrompts";import { useWorker } from "@/hooks/useWorker";import { getProxyBaseUrl } from "@/components/networking";+import { migratedHref } from "@/utils/migratedPages";import { useTheme } from "@/contexts/ThemeContext";import { clearTokenCookies } from "@/utils/cookieUtils";import { clearStoredReturnUrl, getLoginUrl } from "@/utils/returnUrlUtils";@@ -75,7 +76,7 @@ const Navbar: React.FC<NavbarProps> = ({)}<div className="flex items-center gap-2">- <Link href={baseUrl ? baseUrl : "/"} className="flex items-center">+ <Link href={migratedHref("")} className="flex items-center"><div className="relative"><div className="flex h-10 max-w-48 items-center justify-center overflow-hidden"><img