MCPcopy
hub / github.com/codeaashu/claude-code / formatModelPricing

Function formatModelPricing

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

Source from the content-addressed store, hash-verified

215 * e.g., "$3/$15 per Mtok"
216 */
217export function formatModelPricing(costs: ModelCosts): string {
218 return `${formatPrice(costs.inputTokens)}/${formatPrice(costs.outputTokens)} per Mtok`
219}
220
221/**
222 * 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