feat(ai): add Qwen Token Plan Individual provider (#7659)

This commit is contained in:
Mehmet Aras 2026-08-06 18:18:02 +03:00 • committed by GitHub
parent 9ab91fb93e
commit c03d78bdce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 403 additions and 22 deletions

View file

@ -39,6 +39,13 @@ function describeSetDifference(expected: readonly string[], actual: readonly str
.join("; ");
}
export function assertExactModelIds(label: string, expected: Iterable<string>, actual: Iterable<string>): void {
const expectedIds = Array.from(new Set(expected)).sort();
const actualIds = Array.from(new Set(actual)).sort();
if (sameStrings(expectedIds, actualIds)) return;
throw new Error(`${label} model IDs do not match (${describeSetDifference(expectedIds, actualIds)})`);
}
function isRecord(value: unknown): value is Record<string, unknown> {
return typeof value === "object" && value !== null && !Array.isArray(value);
}