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

Function getDefaultOpusModel

src/utils/model/model.ts:108–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107// @[MODEL LAUNCH]: Update the default Opus model (3P providers may lag so keep defaults unchanged).
108export function getDefaultOpusModel(): ModelName {
109 if (process.env.ANTHROPIC_DEFAULT_OPUS_MODEL) {
110 return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL
111 }
112 // 3P providers (Bedrock, Vertex, Foundry) — kept as a separate branch
113 // even when values match, since 3P availability lags firstParty and
114 // these will diverge again at the next model launch.
115 if (getAPIProvider() !== 'firstParty') {
116 return getModelStrings().opus46
117 }
118 return getModelStrings().opus46
119}
120
121// @[MODEL LAUNCH]: Update the default Sonnet model (3P providers may lag so keep defaults unchanged).
122export function getDefaultSonnetModel(): ModelName {

Callers 8

getModelFamilyInfoFunction · 0.85
getBestModelFunction · 0.85
getRuntimeMainLoopModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85
getAnalysisModelFunction · 0.85
getInsightsModelFunction · 0.85
getPromptCachingEnabledFunction · 0.85

Calls 2

getAPIProviderFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected