fix: gate sticker vision on image input

This commit is contained in:
Ayaan Zaidi authored and Ayaan Zaidi committed 2026-01-27 13:49:42 +05:30
1 parent a49250fffc
commit d7a00dc823
3 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ async function resolveStickerVisionSupport(cfg, agentId) {
const defaultModel = resolveDefaultModelForAgent({ cfg, agentId });
const entry = findModelInCatalog(catalog, defaultModel.provider, defaultModel.model);
if (!entry) return false;
return entry.input ? modelSupportsVision(entry) : true;
return modelSupportsVision(entry);
} catch {
return false;
}