mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
port less than 1 cent to spend column
This commit is contained in:
parent
8760276918
commit
d303bf6743
1 changed files with 4 additions and 1 deletions
|
|
@ -162,7 +162,10 @@ const TopKeyView: React.FC<TopKeyViewProps> = ({ 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue