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

Function getDefaultSonnetModel

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

Source from the content-addressed store, hash-verified

117
118// @[MODEL LAUNCH]: Update the default Sonnet model (3P providers may lag so keep defaults unchanged).
119export function getDefaultSonnetModel(): ModelName {
120 if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
121 return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL
122 }
123 // Default to Sonnet 4.5 for 3P since they may not have 4.6 yet
124 if (getAPIProvider() !== 'firstParty') {
125 return getModelStrings().sonnet45
126 }
127 return getModelStrings().sonnet46
128}
129
130// @[MODEL LAUNCH]: Update the default Haiku model (3P providers may lag so keep defaults unchanged).
131export function getDefaultHaikuModel(): ModelName {

Callers 8

AssistantTextMessageFunction · 0.85
getModelFamilyInfoFunction · 0.85
getRuntimeMainLoopModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85
getPromptCachingEnabledFunction · 0.85
selectRelevantMemoriesFunction · 0.85

Calls 2

getAPIProviderFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected