mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
refac
This commit is contained in:
parent
86551de1f7
commit
b0da2c998b
1 changed files with 0 additions and 5 deletions
|
|
@ -34,11 +34,6 @@
|
||||||
pinnedModels = [...new Set([...pinnedModels, modelId])];
|
pinnedModels = [...new Set([...pinnedModels, modelId])];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pinnedModels.length > 5) {
|
|
||||||
toast.error($i18n.t('You can only pin up to 5 models.'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
settings.set({ ...$settings, pinnedModels: pinnedModels });
|
settings.set({ ...$settings, pinnedModels: pinnedModels });
|
||||||
await updateUserSettings(localStorage.token, { ui: $settings });
|
await updateUserSettings(localStorage.token, { ui: $settings });
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue