mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac: admin settings models
This commit is contained in:
parent
9931ccef1e
commit
a018140c7d
1 changed files with 3 additions and 1 deletions
|
|
@ -75,6 +75,8 @@
|
|||
};
|
||||
|
||||
const init = async () => {
|
||||
models = null;
|
||||
|
||||
workspaceModels = await getBaseModels(localStorage.token);
|
||||
baseModels = await getModels(localStorage.token, null, true);
|
||||
|
||||
|
|
@ -126,6 +128,7 @@
|
|||
toast.success($i18n.t('Model updated successfully'));
|
||||
}
|
||||
}
|
||||
await init();
|
||||
|
||||
_models.set(
|
||||
await getModels(
|
||||
|
|
@ -133,7 +136,6 @@
|
|||
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
|
||||
)
|
||||
);
|
||||
await init();
|
||||
};
|
||||
|
||||
const toggleModelHandler = async (model) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue