fix: 拒绝无效的 Sub2API 零优先级

This commit is contained in:
pikastech
2026-07-22 10:18:08 +02:00
parent 8ffc065841
commit 3eebf169db
8 changed files with 13 additions and 13 deletions
@@ -509,7 +509,7 @@ function renderRuntimeErrors(lines: string[], runtime: Record<string, unknown>,
]));
}
const scoreRule = runtimeRecord(accountQuality.scoreRule) ?? {};
lines.push(`SCORE RULE reliability=${runtimeText(scoreRule.reliabilityWeight)} latency=${runtimeText(scoreRule.latencyWeight)} availability=${runtimeText(scoreRule.availabilityWeight)} confidence=separate priority=lower-is-higher highest=0`);
lines.push(`SCORE RULE reliability=${runtimeText(scoreRule.reliabilityWeight)} latency=${runtimeText(scoreRule.latencyWeight)} availability=${runtimeText(scoreRule.availabilityWeight)} confidence=separate priority=lower-is-higher highest=1`);
if (typeof accountQuality.attribution === "string") lines.push(`NOTE: ${accountQuality.attribution}`);
}
const errorModels = runtimeRecords(customerErrors.modelBuckets);