mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 04:17:48 +01:00
refac: switch to meta and params, remove source
This commit is contained in:
@@ -343,7 +343,7 @@
|
||||
const hasImages = messages.some((message) =>
|
||||
message.files?.some((file) => file.type === 'image')
|
||||
);
|
||||
if (hasImages && !(model.custom_info?.params.vision_capable ?? true)) {
|
||||
if (hasImages && !(model.custom_info?.meta.vision_capable ?? true)) {
|
||||
toast.error(
|
||||
$i18n.t('Model {{modelName}} is not vision capable', {
|
||||
modelName: model.custom_info?.name ?? model.name ?? model.id
|
||||
|
||||
Reference in New Issue
Block a user