mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) prisma - non expiring keys
This commit is contained in:
parent
f1ae6957ca
commit
399f0ba620
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ from fastapi import HTTPException, status
|
|||
import smtplib
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
def print_verbose(print_statement):
|
||||
|
@ -376,7 +377,8 @@ class PrismaClient:
|
|||
print_verbose(f"PrismaClient: response={response}")
|
||||
if response is not None:
|
||||
# for prisma we need to cast the expires time to str
|
||||
response.expires = response.expires.isoformat()
|
||||
if isinstance(response.expires, datetime):
|
||||
response.expires = response.expires.isoformat()
|
||||
return response
|
||||
else:
|
||||
# Token does not exist.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue