mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-13 18:32:12 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user