diff --git a/litellm/proxy/policy_engine/policy_endpoints.py b/litellm/proxy/policy_engine/policy_endpoints.py index 98c1887cfcc..615e153862a 100644 --- a/litellm/proxy/policy_engine/policy_endpoints.py +++ b/litellm/proxy/policy_engine/policy_endpoints.py @@ -4,8 +4,6 @@ CRUD ENDPOINTS FOR POLICIES Provides REST API endpoints for managing policies and policy attachments. """ -from typing import List, Optional - from fastapi import APIRouter, Depends, HTTPException from litellm._logging import verbose_proxy_logger diff --git a/litellm/proxy/policy_engine/policy_registry.py b/litellm/proxy/policy_engine/policy_registry.py index cb4d688fce6..6a251a584cb 100644 --- a/litellm/proxy/policy_engine/policy_registry.py +++ b/litellm/proxy/policy_engine/policy_registry.py @@ -11,7 +11,6 @@ from datetime import datetime, timezone from typing import TYPE_CHECKING, Any, Dict, List, Optional from litellm._logging import verbose_proxy_logger -from litellm.litellm_core_utils.safe_json_dumps import safe_dumps from litellm.types.proxy.policy_engine import ( Policy, PolicyCondition, diff --git a/litellm/secret_managers/hashicorp_secret_manager.py b/litellm/secret_managers/hashicorp_secret_manager.py index dac0397dd95..c59f2ef638a 100644 --- a/litellm/secret_managers/hashicorp_secret_manager.py +++ b/litellm/secret_managers/hashicorp_secret_manager.py @@ -563,7 +563,7 @@ class HashicorpSecretManager(BaseSecretManager): return create_response - except httpx.TimeoutException as e: + except httpx.TimeoutException: verbose_logger.exception("Timeout error occurred during secret rotation") return {"status": "error", "message": "Timeout error occurred"} except Exception as e: diff --git a/ui/litellm-dashboard/src/components/policies/index.tsx b/ui/litellm-dashboard/src/components/policies/index.tsx index ab1de283694..5a137d704ad 100644 --- a/ui/litellm-dashboard/src/components/policies/index.tsx +++ b/ui/litellm-dashboard/src/components/policies/index.tsx @@ -10,21 +10,14 @@ import AttachmentTable from "./attachment_table"; import AddAttachmentForm from "./add_attachment_form"; import { getPoliciesList, - createPolicyCall, - updatePolicyCall, deletePolicyCall, - getPolicyInfo, getPolicyAttachmentsList, - createPolicyAttachmentCall, deletePolicyAttachmentCall, getGuardrailsList, } from "../networking"; import { Policy, PolicyAttachment, - PolicyCreateRequest, - PolicyUpdateRequest, - PolicyAttachmentCreateRequest, } from "./types"; import { Guardrail } from "../guardrails/types"; import DeleteResourceModal from "../common_components/DeleteResourceModal";