mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Update litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
941129c9e0
commit
963390928d
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ async def update_jwt_key_mapping(
|
|||
if prisma_client is None:
|
||||
raise HTTPException(status_code=500, detail="Database not connected")
|
||||
|
||||
update_data = data.model_dump(exclude_unset=True, exclude={"id"})
|
||||
update_data = data.model_dump(exclude_unset=True, exclude={"id", "key"})
|
||||
if data.key is not None:
|
||||
update_data["token"] = hash_token(data.key)
|
||||
|
||||
try:
|
||||
# Get old mapping for cache invalidation
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue