The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix viewing keys (#7042)
Ishaan Jaff7ec9c362a6e0
diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.pyindex 53b129782f5..31b55c7442f 100644--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py@@ -425,7 +425,7 @@ async def _get_user_info_for_proxy_admin():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_VerificationTokenkeys_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))# 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]returned_keys = _process_keys_for_user_info(keys=keys_in_db, all_teams=_teams_in_db)return UserInfoResponse(