fix: restore disabled models in the admin Models list

This commit is contained in:
silentoplayz 2026-08-25 20:37:48 -04:00
parent db22d89cab
commit 81dac5da98

View file

@ -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