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

Function modelAuthor

packages/stats/core/src/domain/model-normalization.ts:23–28  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

21}
22
23export function modelAuthor(value: string | undefined) {
24 const model = normalizeInferenceModel(value).toLowerCase()
25 if (EXCLUDED_MODELS.has(model)) return undefined
26
27 return MODEL_AUTHOR_RULES.find((item) => model.includes(item.match))?.author ?? "unknown"
28}
29
30export function statModel(model: string | undefined, providerModel: string | undefined) {
31 const normalized = normalizeInferenceModel(model)

Callers 2

inference.test.tsFile · 0.90
statProviderFunction · 0.85

Calls 2

normalizeInferenceModelFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected