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

Function getModelPricingString

src/utils/modelCost.ts:226–231  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

224 * Returns undefined if model is not found
225 */
226export function getModelPricingString(model: string): string | undefined {
227 const shortName = getCanonicalName(model)
228 const costs = MODEL_COSTS[shortName]
229 if (!costs) return undefined
230 return formatModelPricing(costs)
231}
232

Callers

nothing calls this directly

Calls 2

getCanonicalNameFunction · 0.85
formatModelPricingFunction · 0.85

Tested by

no test coverage detected