(cost: number, maxDecimalPlaces: number = 4)
| 175 | } |
| 176 | |
| 177 | function formatCost(cost: number, maxDecimalPlaces: number = 4): string { |
| 178 | return `$${cost > 0.5 ? round(cost, 100).toFixed(2) : cost.toFixed(maxDecimalPlaces)}` |
| 179 | } |
| 180 | |
| 181 | function formatModelUsage(): string { |
| 182 | const modelUsageMap = getModelUsage() |
no test coverage detected