mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 04:23:40 +00:00
ui fix formatNumberWithCommas
This commit is contained in:
@@ -5430,7 +5430,7 @@
|
||||
"supports_reasoning": true,
|
||||
"supports_tool_choice": true
|
||||
},
|
||||
"groq/moonshotai-kimi-k2-instruct": {
|
||||
"groq/moonshotai/kimi-k2-instruct": {
|
||||
"max_tokens": 131072,
|
||||
"max_input_tokens": 131072,
|
||||
"max_output_tokens": 16384,
|
||||
|
||||
@@ -98,7 +98,7 @@ export const SessionView: React.FC<SessionViewProps> = ({ sessionId, logs, onBac
|
||||
</Card>
|
||||
<Card>
|
||||
<Text>Total Cost</Text>
|
||||
<Metric>${formatNumberWithCommas(totalCost, 4)}</Metric>
|
||||
<Metric>${formatNumberWithCommas(totalCost, 6)}</Metric>
|
||||
</Card>
|
||||
<Card>
|
||||
<Text>Total Tokens</Text>
|
||||
|
||||
@@ -159,7 +159,7 @@ export const columns: ColumnDef<LogEntry>[] = [
|
||||
header: "Cost",
|
||||
accessorKey: "spend",
|
||||
cell: (info: any) => (
|
||||
<span>${formatNumberWithCommas(info.getValue() || 0, 4)}</span>
|
||||
<span>${formatNumberWithCommas(info.getValue() || 0, 6)}</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -929,7 +929,7 @@ export function RequestViewer({ row }: { row: Row<LogEntry> }) {
|
||||
</div>
|
||||
<div className="flex">
|
||||
<span className="font-medium w-1/3">Cost:</span>
|
||||
<span>${formatNumberWithCommas(row.original.spend || 0, 4)}</span>
|
||||
<span>${formatNumberWithCommas(row.original.spend || 0, 6)}</span>
|
||||
</div>
|
||||
<div className="flex">
|
||||
<span className="font-medium w-1/3">Cache Hit:</span>
|
||||
|
||||
Reference in New Issue
Block a user