feat(ui): show key alias instead of hashed token

This commit is contained in:
Krrish Dholakia 2024-02-10 15:45:42 -08:00
parent 6b83001459
commit 34c118e5e9
5 changed files with 118 additions and 37 deletions

View file

@ -556,7 +556,7 @@ class PrismaClient:
new_token = self.hash_token(token=t)
hashed_tokens.append(new_token)
else:
hashed_tokens.append(new_token)
hashed_tokens.append(t)
where_filter["token"]["in"] = hashed_tokens
response = await self.db.litellm_verificationtoken.find_many(
order={"spend": "desc"}, where=where_filter # type: ignore