mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
Merge pull request #29037 from silentoplayz/fix/admin-models-disabled-hidden
fix: restore visibility of disabled models visible in the admin Models list
This commit is contained in:
parent
db22d89cab
commit
673938fd49
1 changed files with 8 additions and 0 deletions
|
|
@ -269,6 +269,14 @@
|
|||
|
||||
baseModels = await getBaseModels(localStorage.token, selectedTag);
|
||||
allModels = await getModels(localStorage.token);
|
||||
|
||||
const providerModels = await getModels(localStorage.token, null, true);
|
||||
const allModelIds = new Set<string>(allModels.map((model: ModelListItem) => model.id));
|
||||
allModels = [
|
||||
...allModels,
|
||||
...providerModels.filter((model: ModelListItem) => !allModelIds.has(model.id))
|
||||
];
|
||||
|
||||
const baseModelIds = new Set<string>(baseModels.map((model: ModelListItem) => model.id));
|
||||
|
||||
models = allModels
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue