diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index 12e650ac7..c9fcdf228 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -720,17 +720,20 @@ const handleEditSubmit = async (formValues: Record) => { return (
{date &&

Date: {date}

} - {sortedPayload.map((category: any, idx: number) => ( -
-
-
-

{category.dataKey}

+ {sortedPayload.map((category: any, idx: number) => { + const roundedValue = parseFloat(category.value.toFixed(5)); + const displayValue = + roundedValue === 0 && category.value > 0 ? "<0.00001" : roundedValue.toFixed(5); + return ( +
+
+
+

{category.dataKey}

+
+

{displayValue}

-

- {category.value.toFixed(5)} -

-
- ))} + ); + })}
); };