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]

create team model select

yuneng-jiangf737429ad94b
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/hooks/models/useModels.test.ts b/ui/litellm-dashboard/src/app/(dashboard)/hooks/models/useModels.test.ts
index a97c309ca91..c6629e5396a 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/hooks/models/useModels.test.ts
+++ b/ui/litellm-dashboard/src/app/(dashboard)/hooks/models/useModels.test.ts
@@ -379,7 +379,11 @@ describe("useAllProxyModels", () => {
"test-access-token",
"test-user-id",
"Admin",
- true
+ true,
+ null,
+ true,
+ false,
+ "expand"
);
expect(modelAvailableCall).toHaveBeenCalledTimes(1);
});
diff --git a/ui/litellm-dashboard/src/components/OldTeams.test.tsx b/ui/litellm-dashboard/src/components/OldTeams.test.tsx
index 76fc26a8847..6b556638fb9 100644
--- a/ui/litellm-dashboard/src/components/OldTeams.test.tsx
+++ b/ui/litellm-dashboard/src/components/OldTeams.test.tsx
@@ -60,6 +60,27 @@ vi.mock("@/components/team/team_info", () => ({
},
}));
+vi.mock("./ModelSelect/ModelSelect", () => ({
+ ModelSelect: React.forwardRef(({ value, onChange, dataTestId, id }: any, ref: any) => {
+ return (
+ <input
+ ref={ref}
+ id={id}
+ type="text"
+ data-testid={dataTestId || "model-select"}
+ value={Array.isArray(value) ? value.join(", ") : ""}
+ onChange={(e) => {
+ // Mock onChange - in real usage this would be handled by Ant Design Select
+ if (onChange) {
+ onChange(value || []);
+ }
+ }}
+ readOnly
+ />
+ );
+ }),
+}));
+
vi.mock("@/app/(dashboard)/hooks/organizations/useOrganizations", () => ({
useOrganizations: () => mockUseOrganizations(),
}));