mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
Make sure model is saved in DB for imported chats (or chats with no model saved already)
This commit is contained in:
parent
415777eca2
commit
81bfb97c91
@ -200,8 +200,15 @@
|
|||||||
await chatId.set('local');
|
await chatId.set('local');
|
||||||
}
|
}
|
||||||
await tick();
|
await tick();
|
||||||
}
|
} else if (chat.chat["models"][0] == "") {
|
||||||
|
// If model is not saved in DB, then save selectedmodel when message is sent
|
||||||
|
|
||||||
|
chat = await updateChatById(localStorage.token, $chatId, {
|
||||||
|
models: selectedModels
|
||||||
|
});
|
||||||
|
await chats.set(await getChatList(localStorage.token));
|
||||||
|
}
|
||||||
|
|
||||||
// Reset chat input textarea
|
// Reset chat input textarea
|
||||||
prompt = '';
|
prompt = '';
|
||||||
files = [];
|
files = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user