MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isNonCustomOpusModel

Function isNonCustomOpusModel

src/utils/model/model.ts:43–50  ·  view source on GitHub ↗
(model: ModelName)

Source from the content-addressed store, hash-verified

41}
42
43export function isNonCustomOpusModel(model: ModelName): boolean {
44 return (
45 model === getModelStrings().opus40 ||
46 model === getModelStrings().opus41 ||
47 model === getModelStrings().opus45 ||
48 model === getModelStrings().opus46
49 )
50}
51
52/**
53 * Helper to get the model from /model (including via /config), the --model flag, environment variable,

Callers 3

queryModelFunction · 0.85
withRetryFunction · 0.85

Calls 1

getModelStringsFunction · 0.70

Tested by

no test coverage detected