forked from open-webui/open-webui
fix: default model load issue
This commit is contained in:
parent
1ff0c9a95d
commit
42251c232a
1 changed files with 4 additions and 3 deletions
|
@ -63,9 +63,6 @@
|
||||||
.filter((models) => models)
|
.filter((models) => models)
|
||||||
.reduce((a, e, i, arr) => a.concat(e, ...(i < arr.length - 1 ? [{ name: 'hr' }] : [])), []);
|
.reduce((a, e, i, arr) => a.concat(e, ...(i < arr.length - 1 ? [{ name: 'hr' }] : [])), []);
|
||||||
|
|
||||||
// models.push(...(ollamaModels ? [{ name: 'hr' }, ...ollamaModels] : []));
|
|
||||||
// models.push(...(openAIModels ? [{ name: 'hr' }, ...openAIModels] : []));
|
|
||||||
// models.push(...(liteLLMModels ? [{ name: 'hr' }, ...liteLLMModels] : []));
|
|
||||||
return models;
|
return models;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -110,6 +107,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
|
await models.set(await getModels());
|
||||||
|
await tick();
|
||||||
|
|
||||||
await settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
|
await settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
|
||||||
|
|
||||||
await modelfiles.set(await getModelfiles(localStorage.token));
|
await modelfiles.set(await getModelfiles(localStorage.token));
|
||||||
|
|
Loading…
Reference in a new issue