forked from phoenix/litellm-mirror
enforce regenerating keys in enterprise tier
This commit is contained in:
parent
b0ae0101f4
commit
75cbbea071
1 changed files with 5 additions and 0 deletions
|
@ -993,6 +993,11 @@ async def regenerate_key_fn(
|
|||
Endpoint for regenerating a key
|
||||
"""
|
||||
|
||||
if premium_user is not True:
|
||||
raise ValueError(
|
||||
f"Regenerating Virtual Keys is an Enterprise feature, {CommonProxyErrors.not_premium_user.value}"
|
||||
)
|
||||
|
||||
# Check if key exists, raise exception if key is not in the DB
|
||||
|
||||
### 1. Create New copy that is duplicate of existing key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue