fix(core): enable numerical routing for api key users (#21977)

This commit is contained in:
Sehoon Shon
2026-03-11 14:54:52 -04:00
committed by GitHub
parent 08e174a05c
commit 36ce2ba96e
6 changed files with 163 additions and 146 deletions

View File

@@ -78,10 +78,9 @@ export class ModelRouterService {
const [enableNumericalRouting, thresholdValue] = await Promise.all([
this.config.getNumericalRoutingEnabled(),
this.config.getClassifierThreshold(),
this.config.getResolvedClassifierThreshold(),
]);
const classifierThreshold =
thresholdValue !== undefined ? String(thresholdValue) : undefined;
const classifierThreshold = String(thresholdValue);
let failed = false;
let error_message: string | undefined;