mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
bfa42c6277
commit
e9fb161bcd
1 changed files with 15 additions and 2 deletions
|
|
@ -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 };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue