Skip to content

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]

Restore Current Cycle Spend column on team members tab

Ryan Crabbea23edd73b14a
diff --git a/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx b/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx
index e997875968d..1f2046fb90a 100644
--- a/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx
+++ b/ui/litellm-dashboard/src/components/team/TeamMemberTab.tsx
@@ -46,6 +46,12 @@ export default function TeamMemberTab({
return "0";
};
+ const getUserCurrentCycleSpend = (userId: string | null): number => {
+ if (!userId) return 0;
+ const membership = teamData.team_memberships.find((tm) => tm.user_id === userId);
+ return membership?.spend ?? 0;
+ };
+
const getUserTotalSpend = (userId: string | null): number => {
if (!userId) return 0;
const membership = teamData.team_memberships.find((tm) => tm.user_id === userId);
@@ -127,11 +133,25 @@ export default function TeamMemberTab({
);
},
},
+ {
+ title: (
+ <Space direction="horizontal">
+ Current Cycle Spend (USD)
+ <Tooltip title="Spend for the current budget cycle. Resets to $0 when the member's budget window rolls over. This is the value checked against the member's budget.">
+ <InfoCircleOutlined />
+ </Tooltip>
+ </Space>
+ ),
+ key: "spend",
+ render: (_: unknown, record: Member) => (
+ <Typography.Text>${formatNumberWithCommas(getUserCurrentCycleSpend(record.user_id), 4)}</Typography.Text>
+ ),
+ },
{
title: (
<Space direction="horizontal">
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.">
+ <Tooltip title="Cumulative spend by this member within this team, across all budget cycles. Tracking began 2026-04-21; spend from before that date is not included.">
<InfoCircleOutlined />
</Tooltip>
</Space>