fix(guardrails): pass providerId to getResolvedModelCapabilities in checkComboVision (#12112) (#12169)

* fix(guardrails): pass providerId to getResolvedModelCapabilities in checkComboVision (#12112)

Signed-off-by: Minxi Hou <houminxi@gmail.com>

* chore(quality): register combo-vision providerId test in the stryker tap set

---------

Signed-off-by: Minxi Hou <houminxi@gmail.com>
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
This commit is contained in:
Bob.Hou
2026-09-01 11:08:04 -04:00
committed by GitHub
parent 17792ce0ad
commit 6dd82b77de
4 changed files with 92 additions and 4 deletions

View File

@@ -89,7 +89,16 @@ export async function getComboVisionBridgeDecision(
hasModelStep = true;
const targetModel = s.model;
if (typeof targetModel === "string") {
const caps = getResolvedModelCapabilities(targetModel);
const provider =
typeof s.providerId === "string"
? s.providerId
: typeof s.provider === "string"
? s.provider
: null;
const caps = getResolvedModelCapabilities({
provider,
model: targetModel,
});
if (caps.supportsVision === true) {
hasVisionCapableStep = true;
} else {