mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(proxy_server.py): accept keys with none duration
This commit is contained in:
parent
485f05ea02
commit
b3a98d8400
3 changed files with 20 additions and 1 deletions
|
@ -189,6 +189,7 @@ class PrismaClient:
|
|||
else:
|
||||
# Token exists but is expired.
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="expired user key")
|
||||
return response
|
||||
else:
|
||||
# Token does not exist.
|
||||
raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="invalid user key")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue