mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix code QA checks
This commit is contained in:
parent
528460a895
commit
c4a7422d25
4 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue