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

Function getDefaultOpusModel

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

Source from the content-addressed store, hash-verified

159
160// @[MODEL LAUNCH]: Update the default Opus model (3P providers may lag so keep defaults unchanged).
161export function getDefaultOpusModel(): ModelName {
162 if (isOpenAICompatByokActive()) {
163 return getOpenAICompatDefaultModel()
164 }
165 const configuredModel = getConfiguredDefaultOpusModelEnv()
166 if (configuredModel) {
167 return configuredModel
168 }
169 // 3P providers (Bedrock, Vertex, Foundry) — kept as a separate branch
170 // even when values match, since 3P availability lags firstParty and
171 // these will diverge again at the next model launch.
172 if (getAPIProvider() !== 'firstParty') {
173 return getModelStrings().opus46
174 }
175 return GLM_5_2_MODEL
176}
177
178// @[MODEL LAUNCH]: Update the default Flash model (3P providers may lag so keep defaults unchanged).
179export function getDefaultFlashModel(): ModelName {

Callers 11

getModelFamilyInfoFunction · 0.85
getBestModelFunction · 0.85
getRuntimeMainLoopModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85
model.auth.test.tsFile · 0.85
getAnalysisModelFunction · 0.85
getInsightsModelFunction · 0.85
getPromptCachingEnabledFunction · 0.85

Calls 5

isOpenAICompatByokActiveFunction · 0.85
getAPIProviderFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected