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 remote-tracking branch 'origin/litellm_internal_staging' into litellm_/pensive-bartik-e24048
Yuneng Jiangcfda5e17ac7c
diff --cc ui/litellm-dashboard/src/components/leftnav.test.tsxindex b8f30084127,08b66c382b8..0e88a1a3603--- a/ui/litellm-dashboard/src/components/leftnav.test.tsx+++ b/ui/litellm-dashboard/src/components/leftnav.test.tsx@@@ -136,46 -135,6 +136,53 @@@ describe("Sidebar (leftnav)", () =>expect(duplicates).toHaveLength(0);});+ describe("Admin Viewer parity", () => {+ // Admin Viewer follows a "read parity with Proxy Admin, no writes, no+ // cost-incurring actions" rule. Playground stays hidden (incurs LLM+ // cost); Models + Endpoints and Agents must be visible read-only.+ const adminViewerAuth = {+ userId: "admin-viewer-user-id",+ accessToken: "test-access-token",+ userRole: "admin_viewer",+ token: "test-token",+ userEmail: "[email protected]",+ premiumUser: false,+ disabledPersonalKeyCreation: false,+ showSSOBanner: false,+ };++ it("hides Playground from Admin Viewer (cost-incurring action)", () => {+ mockUseAuthorized.mockReturnValueOnce(adminViewerAuth);+ renderWithProviders(<Sidebar {...defaultProps} />);+ expect(screen.queryByText("Playground")).not.toBeInTheDocument();+ });++ it("shows Models + Endpoints to Admin Viewer (read-only)", () => {+ mockUseAuthorized.mockReturnValueOnce(adminViewerAuth);+ renderWithProviders(<Sidebar {...defaultProps} />);+ expect(screen.getByText("Models + Endpoints")).toBeInTheDocument();+ });+- it("shows Agents to Admin Viewer (read-only)", () => {++ it("shows Agents (under Agentic) to Admin Viewer (read-only)", async () => {+ mockUseAuthorized.mockReturnValueOnce(adminViewerAuth);+ renderWithProviders(<Sidebar {...defaultProps} />);- expect(screen.getByText("Agents")).toBeInTheDocument();++ // Agents is now nested under the "Agentic" submenu — expand parent++ // first to render the children, then assert Agents is visible.++ act(() => {++ fireEvent.click(screen.getByText("Agentic"));++ });++ await waitFor(() => {++ expect(screen.getByText("Agents")).toBeInTheDocument();++ });+ });++ it("shows Logs to Admin Viewer", () => {+ mockUseAuthorized.mockReturnValueOnce(adminViewerAuth);+ renderWithProviders(<Sidebar {...defaultProps} />);+ expect(screen.getByText("Logs")).toBeInTheDocument();+ });+ });+it("should show Organizations tab for organization admins", () => {mockUseAuthorized.mockReturnValueOnce({userId: "org-admin-user-id",diff --cc ui/litellm-dashboard/src/components/leftnav.tsxindex 029bdc49b5d,cecc99739b1..f2fe1fe96ec--- a/ui/litellm-dashboard/src/components/leftnav.tsx+++ b/ui/litellm-dashboard/src/components/leftnav.tsx@@@ -124,16 -118,34 +125,38 @@@ const menuGroups: MenuGroup[] =page: "models",label: "Models + Endpoints",icon: <BlockOutlined />,- roles: rolesWithWriteAccess,+ // Admin Viewer can view models read-only (write actions are+ // hidden inside the page); Playground above stays write-only.+ roles: rolesAllowedToViewWriteScopedPages,},{- key: "agents",- page: "agents",- label: "Agents",+ key: "agentic",+ page: "agentic",+ label: "Agentic",icon: <RobotOutlined />,- roles: rolesAllowedToViewWriteScopedPages,+ children: [+ {+ key: "agents",+ page: "agents",+ label: "Agents",+ icon: <RobotOutlined />,- roles: rolesWithWriteAccess,++ // Admin Viewer can view agents read-only (write actions are++ // hidden inside the page); Playground above stays write-only.++ roles: rolesAllowedToViewWriteScopedPages,+ },+ {+ key: "workflows",+ page: "workflows",+ label: "Workflow Runs",+ icon: <ApartmentOutlined />,+ },+ {+ key: "memory",+ page: "memory",+ label: "Memory",+ icon: <BookOutlined />,+ },+ ],},{key: "mcp-servers",