MCPcopy Create free account
hub / github.com/Noumena-Network/code / getClassifierModel

Function getClassifierModel

src/utils/permissions/yoloClassifier.ts:1336–1349  ·  view source on GitHub ↗

* Get the model for the classifier. * Ant-only env var takes precedence, then GrowthBook JSON config override, * then the main loop model.

()

Source from the content-addressed store, hash-verified

1334 * then the main loop model.
1335 */
1336function getClassifierModel(): string {
1337 if (isInternalBuild()) {
1338 const envModel = process.env.CLAUDE_CODE_AUTO_MODE_MODEL
1339 if (envModel) return envModel
1340 }
1341 const config = getFeatureValue_CACHED_MAY_BE_STALE(
1342 'ncode_auto_mode_config',
1343 {} as AutoModeConfig,
1344 )
1345 if (config?.model) {
1346 return config.model
1347 }
1348 return getMainLoopModel()
1349}
1350
1351/**
1352 * Resolve the XML classifier setting: ant-only env var takes precedence,

Callers 1

classifyYoloActionFunction · 0.85

Calls 3

isInternalBuildFunction · 0.85
getMainLoopModelFunction · 0.85

Tested by

no test coverage detected