From d303bf6743a276bca6faf0cd972d2fe6136a71b8 Mon Sep 17 00:00:00 2001 From: DrQuacks Date: Thu, 2 Oct 2025 16:55:36 -0700 Subject: [PATCH] port less than 1 cent to spend column --- ui/litellm-dashboard/src/components/top_key_view.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/top_key_view.tsx b/ui/litellm-dashboard/src/components/top_key_view.tsx index 39e66f7f77..65fefbc906 100644 --- a/ui/litellm-dashboard/src/components/top_key_view.tsx +++ b/ui/litellm-dashboard/src/components/top_key_view.tsx @@ -162,7 +162,10 @@ const TopKeyView: React.FC = ({ topKeys, accessToken, userID, u const spendColumn = { header: "Spend (USD)", accessorKey: "spend", - cell: (info: any) => `$${formatNumberWithCommas(info.getValue(), 2)}`, + cell: (info: any) => { + const value = info.getValue(); + return value > 0 && value < 0.01 ? '<$0.01' : `$${formatNumberWithCommas(value, 2)}`; + }, } const columns = showTags