()
| 217 | } |
| 218 | |
| 219 | function getCustomHaikuOption(): ModelOption | undefined { |
| 220 | const is3P = getAPIProvider() !== 'firstParty' |
| 221 | const customHaikuModel = process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL |
| 222 | // When a 3P user has a custom haiku model string, show it directly |
| 223 | if (is3P && customHaikuModel) { |
| 224 | return { |
| 225 | value: 'haiku', |
| 226 | label: process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME ?? customHaikuModel, |
| 227 | description: |
| 228 | process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ?? |
| 229 | 'Custom fast model', |
| 230 | descriptionForModel: `${process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ?? 'Custom fast model'} (${customHaikuModel})`, |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | function getHaiku45Option(): ModelOption { |
| 236 | const is3P = getAPIProvider() !== 'firstParty' |
no test coverage detected