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 branch 'litellm_internal_staging' into litellm_standard_page_header
Yuneng Jiangf99eec5ecb4a
diff --cc ui/litellm-dashboard/src/components/Teams.test.tsxindex 25f64188cd2,d0d41837dce..bee35ac5c5d--- a/ui/litellm-dashboard/src/components/Teams.test.tsx+++ b/ui/litellm-dashboard/src/components/Teams.test.tsx@@@ -530,28 -512,21 +521,19 @@@ describe("Teams - Create Team CTA is grmockUseOrganizations.mockReturnValue({ data: [] });});- it("renders the Create Team button inside the tab bar, ahead of the tabs", () => {+ it("should render the Create Team button inside the tab bar, ahead of the tabs", () => {renderWithQueryClient(<Teams accessToken="test-token" userID="user-123" userRole="Admin" />);- const createButton = screen.getByTestId("create-team-button");- const tabBar = screen.getByRole("tablist").parentElement!;-- // The CTA lives in the tab bar's left slot, not the standalone page header.- expect(tabBar.contains(createButton)).toBe(true);+ const tabNav = screen.getByRole("tablist");+ const createButton = within(tabNav).getByTestId("create-team-button");+ const firstTab = within(tabNav).getByRole("tab", { name: "Your Teams" });- const tabs = tabNav.closest(".ant-tabs");- // It reads as the left end of the cluster: it precedes the first tab in DOM order.- const firstTab = screen.getByRole("tab", { name: "Your Teams" });+ expect(screen.getByRole("main")).toHaveClass("p-8");+ expect(within(tabNav).getByRole("separator")).toBeInTheDocument();expect(createButton.compareDocumentPosition(firstTab) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();- expect(tabs).toHaveClass(- "[&>.ant-tabs-nav]:!mb-6",- "[&>.ant-tabs-nav]:before:!border-b-0",- "[&_.ant-tabs-ink-bar]:!h-0.5",- "[&_.ant-tabs-tab]:!py-[7px]",- "[&_.ant-tabs-tab+_.ant-tabs-tab]:!ml-[22px]",- "[&_.ant-tabs-tab-active]:font-semibold",- );});- it("omits the Create Team CTA for a role that cannot manage teams", () => {+ it("should omit the Create Team CTA for a role that cannot manage teams", () => {renderWithQueryClient(<Teams accessToken="test-token" userID="user-123" userRole="Admin Viewer" />);expect(screen.queryByTestId("create-team-button")).not.toBeInTheDocument();});diff --cc ui/litellm-dashboard/src/components/Teams.tsxindex 5b79b067412,d515b67ad0f..8d9fdd7598f--- a/ui/litellm-dashboard/src/components/Teams.tsx+++ b/ui/litellm-dashboard/src/components/Teams.tsx@@@ -4,11 -4,21 +4,21 @@@ import AvailableTeamsPanel from "@/compimport TeamInfoView from "@/components/team/TeamInfo";import TeamSSOSettings from "@/components/TeamSSOSettings";import { isProxyAdminRole } from "@/utils/roles";- import { InfoCircleOutlined } from "@ant-design/icons";- import { Accordion, AccordionBody, AccordionHeader, TextInput } from "@tremor/react";- import { Button, Form, Input, Layout, Modal, Select, Switch, Tabs, Tooltip, Typography } from "antd";- import { Plus, Users } from "lucide-react";- import React, { useEffect, useState } from "react";+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";+ import { Input as UIInput } from "@/components/ui/input";+ import { Switch } from "@/components/ui/switch";+ import { Textarea } from "@/components/ui/textarea";+ import { TooltipProvider } from "@/components/ui/tooltip";+ import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/shared/form/field";+ import { FormField } from "@/components/shared/form/FormField";+ import { SearchSelect } from "@/components/shared/SearchSelect";+ import { labelWithDocsHint, labelWithHint } from "@/components/shared/form/LabelWithHint";+ import { useZodForm } from "@/lib/forms/useZodForm";+ import { TagsInput } from "@/app/(dashboard)/guardrails/_components/content_filter/TagsInput";-import { Layout, Tabs, theme } from "antd";++import { Layout, Tabs } from "antd";+ import { ChevronDown, Plus, Users } from "lucide-react";+ import React, { useEffect, useMemo, useState } from "react";+ import { z } from "zod/v4";import { useQuery, useQueryClient } from "@tanstack/react-query";import { PageHeader } from "@/components/shared/PageHeader";import { Button as UIButton } from "@/components/ui/button";@@@ -403,7 -542,7 +542,6 @@@ const Teams: React.FC<TeamProps> = ({ areturn false;};- const { Text } = Typography;- const { token } = theme.useToken();const { Content } = Layout;const tabItems = [