Restore the model when switching chats.

This commit is contained in:
Adam Treat
2023-05-03 12:45:14 -04:00
parent 0bb52fc5fe
commit 081d32bd97
4 changed files with 10 additions and 5 deletions

View File

@@ -127,13 +127,14 @@ bool Chat::isRecalc() const
void Chat::unload()
{
m_savedModelName = m_llmodel->modelName();
stopGenerating();
emit unloadRequested();
}
void Chat::reload()
{
emit reloadRequested();
emit reloadRequested(m_savedModelName);
}
void Chat::generatedNameChanged()