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(user_dashboard.tsx): don't call /global/spend on startup (#5668)
Krish Dholakia00047de1c6d8
diff --git a/ui/litellm-dashboard/src/components/user_dashboard.tsx b/ui/litellm-dashboard/src/components/user_dashboard.tsxindex 660e1a6d917..712e4267606 100644--- a/ui/litellm-dashboard/src/components/user_dashboard.tsx+++ b/ui/litellm-dashboard/src/components/user_dashboard.tsx@@ -182,13 +182,14 @@ const UserDashboard: React.FC<UserDashboardProps> = ({response)}; team values: ${Object.entries(response.teams)}`);- if (userRole == "Admin") {- const globalSpend = await getTotalSpendCall(accessToken);- setUserSpendData(globalSpend);- console.log("globalSpend:", globalSpend);- } else {- setUserSpendData(response["user_info"]);- }+ // if (userRole == "Admin") {+ // const globalSpend = await getTotalSpendCall(accessToken);+ // setUserSpendData(globalSpend);+ // console.log("globalSpend:", globalSpend);+ // } else {+ // );+ // }+ setUserSpendData(response["user_info"]);setKeys(response["keys"]); // Assuming this is the correct path to your datasetTeams(response["teams"]);const teamsArray = [...response["teams"]];