This commit is contained in:
Timothy Jaeryang Baek 2025-08-06 12:36:35 +04:00
parent bfa42c6277
commit e9fb161bcd

View file

@ -116,11 +116,24 @@
info.name = name; info.name = name;
if (id === '') { if (id === '') {
toast.error('Model ID is required.'); toast.error($i18n.t('Model ID is required.'));
loading = false;
return;
} }
if (name === '') { if (name === '') {
toast.error('Model Name is required.'); toast.error($i18n.t('Model Name is required.'));
loading = false;
return;
}
if (knowledge.some((item) => item.status === 'uploading')) {
toast.error($i18n.t('Please wait until all files are uploaded.'));
loading = false;
return;
} }
info.params = { ...info.params, ...params }; info.params = { ...info.params, ...params };