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
adding mocks
yuneng-jiangfba61f8e2a7c
diff --git a/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx b/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsxindex 9a56d219bac..80acf5d75ff 100644--- a/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx+++ b/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx@@ -192,7 +192,12 @@ describe("ModelSelect", () => {} as any);renderWithProviders(- <ModelSelect onChange={mockOnChange} context="organization" organizationID="org-1" options={{ includeSpecialOptions: true }} />,+ <ModelSelect+ onChange={mockOnChange}+ context="organization"+ organizationID="org-1"+ options={{ includeSpecialOptions: true }}+ />,);await waitFor(() => {@@ -392,9 +397,7 @@ describe("ModelSelect", () => {isLoading: false,} as any);- renderWithProviders(- <ModelSelect onChange={mockOnChange} context="organization" organizationID="org-1" />,- );+ renderWithProviders(<ModelSelect onChange={mockOnChange} context="organization" organizationID="org-1" />);await waitFor(() => {expect(screen.getByText("gpt-4")).toBeInTheDocument();@@ -426,9 +429,7 @@ describe("ModelSelect", () => {isLoading: false,} as any);- renderWithProviders(- <ModelSelect onChange={mockOnChange} context="organization" organizationID="org-1" />,- );+ renderWithProviders(<ModelSelect onChange={mockOnChange} context="organization" organizationID="org-1" />);await waitFor(() => {expect(screen.getByText("gpt-4")).toBeInTheDocument();@@ -510,9 +511,7 @@ describe("ModelSelect", () => {isLoading: false,} as any);- renderWithProviders(- <ModelSelect onChange={mockOnChange} context="user" options={{ includeUserModels: true }} />,- );+ renderWithProviders(<ModelSelect onChange={mockOnChange} context="user" options={{ includeUserModels: true }} />);await waitFor(() => {expect(screen.getByText("gpt-4")).toBeInTheDocument();@@ -555,9 +554,7 @@ describe("ModelSelect", () => {isLoading: false,} as any);- renderWithProviders(- <ModelSelect onChange={mockOnChange} context="team" teamID="team-1" organizationID="org-1" />,- );+ renderWithProviders(<ModelSelect onChange={mockOnChange} context="team" teamID="team-1" organizationID="org-1" />);await waitFor(() => {expect(screen.getByText("gpt-4")).toBeInTheDocument();