* Get the model for the classifier. * Ant-only env var takes precedence, then GrowthBook JSON config override, * then the main loop model.
()
| 1332 | * then the main loop model. |
| 1333 | */ |
| 1334 | function getClassifierModel(): string { |
| 1335 | if (process.env.USER_TYPE === 'ant') { |
| 1336 | const envModel = process.env.CLAUDE_CODE_AUTO_MODE_MODEL |
| 1337 | if (envModel) return envModel |
| 1338 | } |
| 1339 | const config = getFeatureValue_CACHED_MAY_BE_STALE( |
| 1340 | 'tengu_auto_mode_config', |
| 1341 | {} as AutoModeConfig, |
| 1342 | ) |
| 1343 | if (config?.model) { |
| 1344 | return config.model |
| 1345 | } |
| 1346 | return getMainLoopModel() |
| 1347 | } |
| 1348 | |
| 1349 | /** |
| 1350 | * Resolve the XML classifier setting: ant-only env var takes precedence, |
no test coverage detected