MCPcopy Create free account
hub / github.com/arctic-cli/interface / normalizeModelId

Function normalizeModelId

packages/arctic/src/provider/pricing.ts:139–141  ·  view source on GitHub ↗

* Normalize model ID for matching (handle version number formats)

(modelId: string)

Source from the content-addressed store, hash-verified

137 * Normalize model ID for matching (handle version number formats)
138 */
139 function normalizeModelId(modelId: string): string {
140 return modelId.replace(/\./g, "-") // Convert 4.5 to 4-5
141 }
142
143 function stripThinkingSuffix(modelId: string): string {
144 return modelId.replace(/-thinking$/i, "")

Callers 3

getModelPricingFunction · 0.85
getModelPricingAsyncFunction · 0.85
getCopilotMultiplierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected