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
Circle CI e2e test fix (#16100)
yuneng-jiangb9850accaaa9
diff --git a/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx b/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsxindex 9da2b09b51e..8a3ee60415f 100644--- a/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx+++ b/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx@@ -1,8 +1,7 @@-import { describe, it, expect, vi, beforeEach } from "vitest";-import { render, screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import GuardrailSelector from "./GuardrailSelector";+import { render, waitFor } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";import * as networking from "../networking";+import GuardrailSelector from "./GuardrailSelector";vi.mock("../networking");@@ -48,13 +47,7 @@ describe("GuardrailSelector", () => {guardrails: mockGuardrails,});- render(- <GuardrailSelector- accessToken={mockAccessToken}- onChange={mockOnChange}- value={[]}- />- );+ render(<GuardrailSelector accessToken={mockAccessToken} onChange={mockOnChange} value={[]} />);// Verify API was called with correct tokenawait waitFor(() => {@@ -62,4 +55,3 @@ describe("GuardrailSelector", () => {});});});-diff --git a/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx b/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsxindex 99744e6e70d..2a8d58a58cc 100644--- a/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx+++ b/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx@@ -1,8 +1,7 @@-import { describe, it, expect, vi, beforeEach } from "vitest";import { render, screen, waitFor } from "@testing-library/react";import userEvent from "@testing-library/user-event";+import { beforeEach, describe, expect, it, vi } from "vitest";import GuardrailTestPlayground from "./GuardrailTestPlayground";-import * as networking from "../networking";vi.mock("../networking");@@ -52,7 +51,7 @@ describe("GuardrailTestPlayground", () => {isLoading={false}accessToken={mockAccessToken}onClose={vi.fn()}- />+ />,);// Initially, the empty state should be shown@@ -72,4 +71,3 @@ describe("GuardrailTestPlayground", () => {expect(screen.getByText("1 of 1 selected")).toBeInTheDocument();});});-diff --git a/ui/litellm-dashboard/src/components/model_info_view.test.tsx b/ui/litellm-dashboard/src/components/model_info_view.test.tsxindex 3b36e7324cc..5c7aa3c82fc 100644--- a/ui/litellm-dashboard/src/components/model_info_view.test.tsx+++ b/ui/litellm-dashboard/src/components/model_info_view.test.tsx@@ -1,5 +1,5 @@import { render, waitFor } from "@testing-library/react";-import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";+import { describe, expect, it, vi } from "vitest";import ModelInfoView from "./model_info_view";vi.mock("../../utils/dataUtils", () => ({