/key/delete - allow team admin to delete team keys (#7846)

* fix(key_management_endpoints.py): fix key delete to allow team admins + other proxy admins to delete keys

Fixes https://github.com/BerriAI/litellm/issues/7760

* fix(key_management_endpoints.py): remove unused variables

* fix(key_management_endpoints.py): fix linting error
This commit is contained in:
Krish Dholakia 2025-01-17 20:16:12 -08:00 committed by GitHub
parent c4ff0b6487
commit d00febcdaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 118 additions and 37 deletions

View file

@ -189,7 +189,7 @@ from litellm.proxy.management_endpoints.internal_user_endpoints import (
)
from litellm.proxy.management_endpoints.internal_user_endpoints import user_update
from litellm.proxy.management_endpoints.key_management_endpoints import (
delete_verification_token,
delete_verification_tokens,
duration_in_seconds,
generate_key_helper_fn,
)