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

Function extractModelId

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

* Extract model ID from full model string (strip provider prefix)

(modelId: string)

Source from the content-addressed store, hash-verified

115 * Extract model ID from full model string (strip provider prefix)
116 */
117 function extractModelId(modelId: string): string {
118 const parts = modelId.split("/")
119 return parts.length > 1 ? parts[1] : parts[0]
120 }
121
122 function codexBaseModelId(modelId: string): string | null {
123 if (!modelId.includes("codex")) {

Callers 3

copilotModelCandidatesFunction · 0.85
getModelPricingFunction · 0.85
getModelPricingAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected