()
| 196 | |
| 197 | // @[MODEL LAUNCH]: Update the default Haiku model (3P providers may lag so keep defaults unchanged). |
| 198 | export 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. |
no test coverage detected