mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 21:53:37 +00:00
refac
This commit is contained in:
parent
d87a7b2f8b
commit
db0ff839dd
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user