(cost: number)
| 826 | * @returns Formatted credit string (e.g. "200 credits", "<1 credit", "0 credits") |
| 827 | */ |
| 828 | export function formatCost(cost: number): string { |
| 829 | return formatCreditCost(cost) ?? '—' |
| 830 | } |
| 831 | |
| 832 | /** |
| 833 | * Get the list of models that are hosted by the platform (don't require user API keys) |
no test coverage detected