refac
This commit is contained in:
1 parent
d87a7b2f8b
commit
db0ff839dd
1 file changed
+1
-1
@@ -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)) {
|
||||||
|
|||||||
Reference in new issue
Block a user