This commit is contained in:
Timothy Jaeryang Baek 2025-02-03 14:24:30 -08:00
parent d87a7b2f8b
commit db0ff839dd

View File

@ -1402,7 +1402,7 @@
const messages = createMessagesList(parentId); const messages = createMessagesList(parentId);
// If there are image files, check if model is vision capable // If there are image files, check if model is vision capable
const hasImages = messages.some((message) => const hasImages = messages.some((message) =>
message.files?.some((file) => file.type === 'image') message?.files?.some((file) => file.type === 'image')
); );
if (hasImages && !(model.info?.meta?.capabilities?.vision ?? true)) { if (hasImages && !(model.info?.meta?.capabilities?.vision ?? true)) {