This commit is contained in:
G30 2026-10-13 14:54:52 -04:00 • committed by GitHub
commit cf6bd930d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
});