MCPcopy Index your code
hub / github.com/simstudioai/sim / formatCost

Function formatCost

apps/sim/providers/utils.ts:828–830  ·  view source on GitHub ↗
(cost: number)

Source from the content-addressed store, hash-verified

826 * @returns Formatted credit string (e.g. "200 credits", "<1 credit", "0 credits")
827 */
828export 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)

Callers 3

utils.test.tsFile · 0.90
LogDetailsContentFunction · 0.90
EnrichmentDetailsContentFunction · 0.90

Calls 1

formatCreditCostFunction · 0.90

Tested by

no test coverage detected