Merge pull request #916 from open-webui/dev

fix: default model load issue
This commit is contained in:
Timothy Jaeryang Baek 2024-02-25 19:09:27 -05:00 committed by GitHub
commit 334d5246ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,9 +63,6 @@
.filter((models) => models)
.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;
};
@ -110,6 +107,10 @@
}
console.log();
await models.set(await getModels());
await tick();
await settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
await modelfiles.set(await getModelfiles(localStorage.token));