forked from open-webui/open-webui
fix: new chat load
This commit is contained in:
parent
e116016543
commit
6a2c1600f5
5 changed files with 37 additions and 21 deletions
|
@ -50,10 +50,12 @@
|
|||
if (API_BASE_URL === '') {
|
||||
API_BASE_URL = BUILD_TIME_API_BASE_URL;
|
||||
}
|
||||
const res = await getModels(API_BASE_URL, 'ollama');
|
||||
const _models = await getModels(API_BASE_URL, 'ollama');
|
||||
|
||||
if (res) {
|
||||
if (_models.length > 0) {
|
||||
toast.success('Server connection verified');
|
||||
await models.set(_models);
|
||||
|
||||
saveSettings({
|
||||
API_BASE_URL: API_BASE_URL
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue