mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
feat(model_management_endpoints.py): emit audit logs on model delete
This commit is contained in:
parent
e90b3d9c4c
commit
37b30395c9
6 changed files with 175 additions and 90 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue