mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
Merge 4be1305aa6 into 5c93b06b07
This commit is contained in:
commit
cf6bd930d8
1 changed files with 4 additions and 1 deletions
|
|
@ -485,7 +485,10 @@
|
|||
model = { ...model, ...(isPresetModel(model) ? {} : { base_model_id: null }), ...overrides };
|
||||
|
||||
if (savedModels.find((m: ModelListItem) => m.id === model.id) || isPresetModel(model)) {
|
||||
const res = await updateModelById(localStorage.token, model.id, model).catch((error) => {
|
||||
const res = await updateModelById(localStorage.token, model.id, {
|
||||
...savedModels.find((m: ModelListItem) => m.id === model.id),
|
||||
...model
|
||||
}).catch((error) => {
|
||||
return null;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue