feat: enable numerical routing by default with threshold 90

This commit is contained in:
Sandy Tao
2026-01-28 22:24:17 -08:00
parent 7f066fd3a7
commit 18a0119211

View File

@@ -1843,8 +1843,10 @@ export class Config {
async getNumericalRoutingEnabled(): Promise<boolean> {
await this.ensureExperimentsLoaded();
return !!this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING]
?.boolValue;
return (
this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING]
?.boolValue ?? true
);
}
async getClassifierThreshold(): Promise<number | undefined> {
@@ -1854,7 +1856,7 @@ export class Config {
if (flag?.intValue !== undefined) {
return parseInt(flag.intValue, 10);
}
return flag?.floatValue;
return flag?.floatValue ?? 90;
}
async getBannerTextNoCapacityIssues(): Promise<string> {