()
| 159 | |
| 160 | // @[MODEL LAUNCH]: Update the default Opus model (3P providers may lag so keep defaults unchanged). |
| 161 | export 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). |
| 179 | export function getDefaultFlashModel(): ModelName { |
no test coverage detected