MCPcopy Create free account
hub / github.com/anomalyco/models.dev / resolveBaseModel

Function resolveBaseModel

packages/core/src/sync/providers/chutes.ts:157–159  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

155}
156
157function resolveBaseModel(modelId: string): string | undefined {
158 return baseModelCandidates(modelId).find(canonicalExists);
159}
160
161// existsSync is case-insensitive on Windows/macOS; verify the real on-disk filename case
162// so the resolved base_model matches the canonical metadata exactly (and CI on Linux).

Callers 1

buildChutesModelFunction · 0.70

Calls 1

baseModelCandidatesFunction · 0.85

Tested by

no test coverage detected