MCPcopy Index your code
hub / github.com/Noumena-Network/code / getDefaultFlashModel

Function getDefaultFlashModel

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

Source from the content-addressed store, hash-verified

177
178// @[MODEL LAUNCH]: Update the default Flash model (3P providers may lag so keep defaults unchanged).
179export function getDefaultFlashModel(): ModelName {
180 if (isOpenAICompatByokActive()) {
181 return getOpenAICompatDefaultModel()
182 }
183 const configuredModel = getConfiguredDefaultFlashModelEnv()
184 if (configuredModel) {
185 return configuredModel
186 }
187 // Default to the previous standard model on 3P since provider availability can lag.
188 if (getAPIProvider() !== 'firstParty') {
189 return getModelStrings().sonnet45
190 }
191 // On Noumena-managed first-party, the Flash/Sonnet tier maps to Kimi K2.7
192 // Coder (balanced coding model, default main loop for non-premium surfaces,
193 // memory ranking, and other balanced-tier work).
194 return KIMI_2_7_CODER_MODEL
195}
196
197// @[MODEL LAUNCH]: Update the default Haiku model (3P providers may lag so keep defaults unchanged).
198export function getDefaultHaikuModel(): ModelName {

Calls 5

isOpenAICompatByokActiveFunction · 0.85
getAPIProviderFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected