(tokens: number)
| 1463 | } |
| 1464 | |
| 1465 | function formatTokenCount(tokens: number): string { |
| 1466 | if (tokens >= 1_000_000) return `${(tokens / 1_000_000).toFixed(1)}M`; |
| 1467 | if (tokens >= 1_000) return `${Math.round(tokens / 1_000)}k`; |
| 1468 | return String(tokens); |
| 1469 | } |
| 1470 | |
| 1471 | function formatCost(costUsd: number): string { |
| 1472 | if (costUsd < 0.01) return '<0.01'; |
no outgoing calls
no test coverage detected