mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix viewing keys (#7042)
This commit is contained in:
parent
d99360a272
commit
30cb07f68c
1 changed files with 2 additions and 2 deletions
|
@ -425,7 +425,7 @@ async def _get_user_info_for_proxy_admin():
|
||||||
|
|
||||||
results = await prisma_client.db.query_raw(sql_query)
|
results = await prisma_client.db.query_raw(sql_query)
|
||||||
|
|
||||||
_keys_in_db = results[0]["keys"]
|
_keys_in_db: List = results[0]["keys"] or []
|
||||||
# cast all keys to LiteLLM_VerificationToken
|
# cast all keys to LiteLLM_VerificationToken
|
||||||
keys_in_db = []
|
keys_in_db = []
|
||||||
for key in _keys_in_db:
|
for key in _keys_in_db:
|
||||||
|
@ -434,7 +434,7 @@ async def _get_user_info_for_proxy_admin():
|
||||||
keys_in_db.append(LiteLLM_VerificationToken(**key))
|
keys_in_db.append(LiteLLM_VerificationToken(**key))
|
||||||
|
|
||||||
# cast all teams to LiteLLM_TeamTable
|
# cast all teams to LiteLLM_TeamTable
|
||||||
_teams_in_db = results[0]["teams"]
|
_teams_in_db: List = results[0]["teams"] or []
|
||||||
_teams_in_db = [LiteLLM_TeamTable(**team) for team in _teams_in_db]
|
_teams_in_db = [LiteLLM_TeamTable(**team) for team in _teams_in_db]
|
||||||
returned_keys = _process_keys_for_user_info(keys=keys_in_db, all_teams=_teams_in_db)
|
returned_keys = _process_keys_for_user_info(keys=keys_in_db, all_teams=_teams_in_db)
|
||||||
return UserInfoResponse(
|
return UserInfoResponse(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue