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
Surface per-member total spend in Teams > Members tab
Ryan Crabbe331e3f22508c
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsxindex 909b079e6a5..4bc7ff3ea8e 100644--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx@@ -60,6 +60,7 @@ export interface TeamMembership {team_id: string;budget_id: string;spend: number;+ total_spend: number | null;litellm_budget_table: {budget_id: string;soft_budget: number | null;diff --git a/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx b/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsxindex e880aa49f65..7c9e47d9e1b 100644--- a/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx@@ -45,11 +45,10 @@ export default function TeamMemberTab({return "0";};- // Helper function to get spend for a user- const getUserSpend = (userId: string | null): number | null => {+ const getUserTotalSpend = (userId: string | null): number => {if (!userId) return 0;const membership = teamData.team_memberships.find((tm) => tm.user_id === userId);- return membership?.spend || 0;+ return membership?.total_spend ?? 0;};const getUserBudget = (userId: string | null): string | null => {@@ -124,15 +123,15 @@ export default function TeamMemberTab({{title: (<Space direction="horizontal">- Team Member Spend (USD)- <Tooltip title="This is the amount spent by a user in the team.">+ Total Spend (USD)+ <Tooltip title="Total spend by this member within this team. Tracking began 2026-04-21; spend from before that date is not included."><InfoCircleOutlined /></Tooltip></Space>),- key: "spend",+ key: "total_spend",render: (_: unknown, record: Member) => (- <Typography.Text>${formatNumberWithCommas(getUserSpend(record.user_id), 4)}</Typography.Text>+ <Typography.Text>${formatNumberWithCommas(getUserTotalSpend(record.user_id), 4)}</Typography.Text>),},{