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 flaky ui test
yuneng-jiang1f2bf08136cd
diff --git a/ui/litellm-dashboard/src/components/add_model/add_model_tab.test.tsx b/ui/litellm-dashboard/src/components/add_model/add_model_tab.test.tsxindex 201bbb3c180..5f165bb7f85 100644--- a/ui/litellm-dashboard/src/components/add_model/add_model_tab.test.tsx+++ b/ui/litellm-dashboard/src/components/add_model/add_model_tab.test.tsx@@ -42,7 +42,11 @@ const createQueryClient = () =>defaultOptions: {queries: {retry: false,- gcTime: 0,+ staleTime: Infinity,+ gcTime: Infinity,+ refetchOnWindowFocus: false,+ refetchOnReconnect: false,+ refetchOnMount: false,},},});@@ -140,7 +144,7 @@ describe("Add Model Tab", () => {);expect(await screen.findByRole("tab", { name: "Add Model" })).toBeInTheDocument();- });+ }, 10000); // This test is flaky, adding a timeout until we find a better solutionit("should display both Add Model and Add Auto Router tabs", async () => {const props = createTestProps();