mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 03:17:46 +01:00
refac
This commit is contained in:
@@ -116,11 +116,24 @@
|
||||
info.name = name;
|
||||
|
||||
if (id === '') {
|
||||
toast.error('Model ID is required.');
|
||||
toast.error($i18n.t('Model ID is required.'));
|
||||
loading = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
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 };
|
||||
|
||||
Reference in New Issue
Block a user