(feat) add /spend/keys endpoint

This commit is contained in:
ishaan-jaff 2024-01-23 15:10:10 -08:00
parent 2f11b92698
commit a2da9c30fb
2 changed files with 28 additions and 0 deletions

View file

@ -391,6 +391,10 @@ class PrismaClient:
for r in response:
if isinstance(r.expires, datetime):
r.expires = r.expires.isoformat()
elif query_type == "find_all":
response = await self.db.litellm_verificationtoken.find_many(
order={"spend": "desc"},
)
print_verbose(f"PrismaClient: response={response}")
if response is not None:
return response