mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
fix: model hide issue
This commit is contained in:
@@ -108,7 +108,15 @@
|
||||
toast.success($i18n.t('Model updated successfully'));
|
||||
}
|
||||
} 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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user