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

Function getDefaultSonnetModel

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

Source from the content-addressed store, hash-verified

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