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(ui): remove unused useMutation import and add React import to test
Lucas Song9c869732a535
diff --git a/ui/litellm-dashboard/src/components/policies/index.tsx b/ui/litellm-dashboard/src/components/policies/index.tsxindex 19d4042266f..043346c44b1 100644--- a/ui/litellm-dashboard/src/components/policies/index.tsx+++ b/ui/litellm-dashboard/src/components/policies/index.tsx@@ -1,7 +1,7 @@import React, { useState, useEffect, useCallback } from "react";import { Button, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@tremor/react";import { Alert } from "antd";-import { useMutation } from "@tanstack/react-query";+import MessageManager from "@/components/molecules/message_manager";import { InfoCircleOutlined } from "@ant-design/icons";import { isAdminRole } from "@/utils/roles";diff --git a/ui/litellm-dashboard/src/hooks/policies/useDeletePolicyAttachment.test.tsx b/ui/litellm-dashboard/src/hooks/policies/useDeletePolicyAttachment.test.tsxindex fe63286ed01..942a362803b 100644--- a/ui/litellm-dashboard/src/hooks/policies/useDeletePolicyAttachment.test.tsx+++ b/ui/litellm-dashboard/src/hooks/policies/useDeletePolicyAttachment.test.tsx@@ -1,3 +1,4 @@+import React from "react";import { renderHook, waitFor } from "@testing-library/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { useDeletePolicyAttachment } from "./useDeletePolicyAttachment";