MCPcopy
hub / github.com/codeaashu/claude-code / getDefaultOpusModel

Function getDefaultOpusModel

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

Source from the content-addressed store, hash-verified

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