ui fix formatNumberWithCommas

This commit is contained in:
Ishaan Jaff
2025-07-19 14:42:41 -07:00
parent 76d461dcae
commit 93badc72dc
4 changed files with 4 additions and 4 deletions
@@ -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>