mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac: admin settings models
This commit is contained in:
parent
9931ccef1e
commit
a018140c7d
@ -75,6 +75,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
|
models = null;
|
||||||
|
|
||||||
workspaceModels = await getBaseModels(localStorage.token);
|
workspaceModels = await getBaseModels(localStorage.token);
|
||||||
baseModels = await getModels(localStorage.token, null, true);
|
baseModels = await getModels(localStorage.token, null, true);
|
||||||
|
|
||||||
@ -126,6 +128,7 @@
|
|||||||
toast.success($i18n.t('Model updated successfully'));
|
toast.success($i18n.t('Model updated successfully'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
await init();
|
||||||
|
|
||||||
_models.set(
|
_models.set(
|
||||||
await getModels(
|
await getModels(
|
||||||
@ -133,7 +136,6 @@
|
|||||||
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
|
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
await init();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const toggleModelHandler = async (model) => {
|
const toggleModelHandler = async (model) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user