MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatModelPricing

Function formatModelPricing

src/utils/modelCost.ts:265–267  ·  view source on GitHub ↗
(costs: ModelCosts)

Source from the content-addressed store, hash-verified

263 * e.g., "$3/$15 per Mtok"
264 */
265export function formatModelPricing(costs: ModelCosts): string {
266 return `${formatPrice(costs.inputTokens)}/${formatPrice(costs.outputTokens)} per Mtok`
267}
268
269/**
270 * Get formatted pricing string for a model

Callers 10

getModelPricingStringFunction · 0.85
getDefaultOptionForUserFunction · 0.85
getSonnet46OptionFunction · 0.85
getSonnet46_1MOptionFunction · 0.85
getHaiku45OptionFunction · 0.85
getHaiku35OptionFunction · 0.85
getMaxSonnet46_1MOptionFunction · 0.85
getOpus46PricingSuffixFunction · 0.85
FastModePickerFunction · 0.85
handleFastModeShortcutFunction · 0.85

Calls 1

formatPriceFunction · 0.85

Tested by

no test coverage detected