feat(model_management_endpoints.py): emit audit logs on model delete

This commit is contained in:
Krrish Dholakia 2025-03-13 18:48:38 -07:00
parent e90b3d9c4c
commit 37b30395c9
6 changed files with 175 additions and 90 deletions

View file

@ -1,11 +1,18 @@
from typing import Any, Union
import uuid
from datetime import datetime, timezone
from typing import Any, Optional, Union
import litellm
from litellm.proxy._types import (
AUDIT_ACTIONS,
GenerateKeyRequest,
LiteLLM_AuditLogs,
LiteLLM_ManagementEndpoint_MetadataFields_Premium,
LiteLLM_TeamTable,
LitellmTableNames,
UserAPIKeyAuth,
)
from litellm.proxy.management_helpers.audit_logs import create_audit_log_for_update
from litellm.proxy.utils import _premium_user_check