mirror of
https://github.com/open-webui/open-webui
synced 2025-06-04 03:37:35 +00:00
fix: model hide issue
This commit is contained in:
parent
bde89fd29e
commit
f6c8184a74
@ -108,7 +108,15 @@
|
|||||||
toast.success($i18n.t('Model updated successfully'));
|
toast.success($i18n.t('Model updated successfully'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const res = await createNewModel(localStorage.token, model).catch((error) => {
|
const res = await createNewModel(localStorage.token, {
|
||||||
|
meta: {},
|
||||||
|
id: model.id,
|
||||||
|
name: model.name,
|
||||||
|
base_model_id: null,
|
||||||
|
params: {},
|
||||||
|
access_control: {},
|
||||||
|
...model
|
||||||
|
}).catch((error) => {
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user