mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
789e1db260
commit
ede29e98b7
1 changed files with 5 additions and 2 deletions
|
|
@ -51,8 +51,11 @@
|
|||
onMount(async () => {
|
||||
config = await getModelsConfig(localStorage.token);
|
||||
|
||||
defaultModelIds = (config?.DEFAULT_MODELS ?? '').split(',').filter((id) => id);
|
||||
|
||||
if (config?.DEFAULT_MODELS) {
|
||||
defaultModelIds = (config?.DEFAULT_MODELS).split(',').filter((id) => id);
|
||||
} else {
|
||||
defaultModelIds = [];
|
||||
}
|
||||
const modelOrderList = config.MODEL_ORDER_LIST || [];
|
||||
const allModelIds = $models.map((model) => model.id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue