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

Function getDefaultHaikuModel

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

Source from the content-addressed store, hash-verified

196
197// @[MODEL LAUNCH]: Update the default Haiku model (3P providers may lag so keep defaults unchanged).
198export function getDefaultHaikuModel(): ModelName {
199 if (isOpenAICompatByokActive()) {
200 return getOpenAICompatDefaultModel()
201 }
202 const configuredModel = getConfiguredDefaultHaikuModelEnv()
203 if (configuredModel) {
204 return configuredModel
205 }
206
207 // 3P providers (Bedrock, Vertex, Foundry) — kept as a separate branch
208 // even when values match, since 3P availability lags firstParty and
209 // these will diverge again at the next model launch.
210 if (getAPIProvider() !== 'firstParty') {
211 return getModelStrings().haiku45
212 }
213 return DEEPSEEK_V4_FLASH_MODEL
214}
215
216/**
217 * Get the model to use for runtime, depending on the runtime context.

Callers 6

getHaikuOptionFunction · 0.85
getModelFamilyInfoFunction · 0.85
getSmallFastModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Calls 5

isOpenAICompatByokActiveFunction · 0.85
getAPIProviderFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected