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]

Update Reset Spend button style and modal copy

yuneng-jiang98b91080ca5b
diff --git a/ui/litellm-dashboard/src/components/templates/KeyInfoHeader.tsx b/ui/litellm-dashboard/src/components/templates/KeyInfoHeader.tsx
index df3678afab6..c750b1b4ac7 100644
--- a/ui/litellm-dashboard/src/components/templates/KeyInfoHeader.tsx
+++ b/ui/litellm-dashboard/src/components/templates/KeyInfoHeader.tsx
@@ -11,7 +11,7 @@ import {
ClockCircleOutlined,
ThunderboltOutlined,
SafetyCertificateOutlined,
- DollarOutlined,
+ TransactionOutlined,
} from "@ant-design/icons";
import LabeledField from "../common_components/LabeledField";
@@ -81,7 +81,7 @@ export function KeyInfoHeader({
{canModifyKey && (
<Space>
{onResetSpend && (
- <Button icon={<DollarOutlined />} onClick={onResetSpend}>
+ <Button danger icon={<TransactionOutlined />} onClick={onResetSpend}>
Reset Spend
</Button>
)}
diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
index 35a75b2f2fe..b77b13b1591 100644
--- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
@@ -450,8 +450,8 @@ export default function KeyInfoView({
<strong>$0</strong>?
</p>
<p style={{ color: "#666", fontSize: "0.875rem", marginTop: 8 }}>
- Current spend: <strong>${formatNumberWithCommas(currentKeyData.spend, 4)}</strong>. The key will be
- immediately unblocked and able to make requests again.
+ Current spend: <strong>${formatNumberWithCommas(currentKeyData.spend, 4)}</strong>. Spend history is
+ preserved in logs. This resets the current period spend counter, the same as an automatic budget reset.
</p>
</Modal>