feat: enable numerical routing by default with threshold 50

This commit is contained in:
Sandy Tao
2026-01-28 22:23:52 -08:00
parent 7f066fd3a7
commit c6b15815ef

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 ?? 50;
}
async getBannerTextNoCapacityIssues(): Promise<string> {