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
Fix tests
yuneng-jiang0af3a51a9741
diff --git a/ui/litellm-dashboard/src/components/settings.test.tsx b/ui/litellm-dashboard/src/components/settings.test.tsxindex 72a265eadd9..20dadf9d2a5 100644--- a/ui/litellm-dashboard/src/components/settings.test.tsx+++ b/ui/litellm-dashboard/src/components/settings.test.tsx@@ -54,6 +54,10 @@ const mockCallbacksData = {describe("Settings", () => {it("should render the settings page", () => {+ vi.spyOn(networking, "alertingSettingsCall").mockResolvedValue([]);+ vi.spyOn(networking, "getEmailEventSettings").mockResolvedValue({ settings: [] });+ vi.spyOn(networking, "getCallbacksCall").mockResolvedValue(mockCallbacksData);+render(<Settings accessToken="test-token" userRole="admin" userID="test-user" premiumUser={false} />);});});@@ -61,6 +65,8 @@ describe("Settings", () => {describe("Logging Callbacks Section", () => {beforeEach(() => {vi.clearAllMocks();+ vi.spyOn(networking, "alertingSettingsCall").mockResolvedValue([]);+ vi.spyOn(networking, "getEmailEventSettings").mockResolvedValue({ settings: [] });});it("should display the list of active callbacks", async () => {