refac: switch to meta and params, remove source

This commit is contained in:
Jun Siang Cheah committed 2024-05-21 22:05:16 +01:00
1 parent 7ccef3e77a
commit f21c8626d6
12 files changed
+70 -107

No files matched your search

+1 -1
View File
@@ -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