From 34f0c3c4dce171641e056fd99d2ab8177a77ec5a Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 21 Nov 2025 17:25:37 -0800 Subject: [PATCH] Remove cost tracking disabled tooltip in chat ui (#16953) * Fix: Simplify cost tooltip in ResponseMetrics Co-authored-by: ishaan * Fix: Display cost metric correctly in ResponseMetrics Co-authored-by: ishaan --------- Co-authored-by: Cursor Agent Co-authored-by: ishaan --- .../playground/chat_ui/ResponseMetrics.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ui/litellm-dashboard/src/components/playground/chat_ui/ResponseMetrics.tsx b/ui/litellm-dashboard/src/components/playground/chat_ui/ResponseMetrics.tsx index 658d55b12d8..01eafa4d534 100644 --- a/ui/litellm-dashboard/src/components/playground/chat_ui/ResponseMetrics.tsx +++ b/ui/litellm-dashboard/src/components/playground/chat_ui/ResponseMetrics.tsx @@ -84,17 +84,11 @@ const ResponseMetrics: React.FC = ({ timeToFirstToken, tot )} - {usage && ( - + {usage?.cost !== undefined && ( +
- {usage.cost !== undefined ? `$${usage.cost.toFixed(6)}` : "Not Tracked"} + ${usage.cost.toFixed(6)}
)}