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
Tests
yuneng-jiang8e3eb3316555
diff --git a/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreForm.test.tsx b/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreForm.test.tsxnew file mode 100644index 00000000000..7bc948c9127--- /dev/null+++ b/ui/litellm-dashboard/src/components/vector_store_management/VectorStoreForm.test.tsx@@ -0,0 +1,28 @@+import { describe, it, expect, vi } from "vitest";+import { render, screen } from "@testing-library/react";+import VectorStoreForm from "./VectorStoreForm";+import * as networking from "../networking";+import { CredentialItem } from "../networking";++vi.mock("../networking");++describe("VectorStoreForm", () => {+ it("should render the form when visible", () => {+ const mockOnCancel = vi.fn();+ const mockOnSuccess = vi.fn();+ const mockAccessToken = "test-token";+ const mockCredentials: CredentialItem[] = [];++ render(+ <VectorStoreForm+ isVisible={true}+ onCancel={mockOnCancel}+ onSuccess={mockOnSuccess}+ accessToken={mockAccessToken}+ credentials={mockCredentials}+ />,+ );++ expect(screen.getByText("Add New Vector Store")).toBeInTheDocument();+ });+});