"git@developer.sourcefind.cn:xdb4_94051/vllm.git" did not exist on "42e0c1df789a2079eeb219fa790cbf5678af662f"
Commit 81bfb97c authored by Brandon Hulston's avatar Brandon Hulston
Browse files

Make sure model is saved in DB for imported chats (or chats with no model saved already)

parent 415777ec
......@@ -200,8 +200,15 @@
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
prompt = '';
files = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment