forked from open-webui/open-webui
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
1 changed files with 8 additions and 1 deletions
|
@ -200,6 +200,13 @@
|
|||
await chatId.set('local');
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue