MCPcopy Create free account
hub / github.com/anomalyco/opencode / statModel

Function statModel

packages/stats/core/src/domain/model-normalization.ts:30–34  ·  view source on GitHub ↗
(model: string | undefined, providerModel: string | undefined)

Source from the content-addressed store, hash-verified

28}
29
30export function statModel(model: string | undefined, providerModel: string | undefined) {
31 const normalized = normalizeInferenceModel(model)
32 if (RETIRED_STAT_MODELS.includes(normalized.toLowerCase())) return normalizeInferenceModel(providerModel)
33 return normalized
34}
35
36export function statProvider(
37 model: string | undefined,

Callers 5

modelFunction · 0.90
toModelAggregateFunction · 0.90
toGeoAggregateFunction · 0.90
inference.test.tsFile · 0.90
statProviderFunction · 0.85

Calls 1

normalizeInferenceModelFunction · 0.85

Tested by

no test coverage detected