Restore the model when switching chats.

This commit is contained in:
Adam Treat
2023-05-03 12:45:14 -04:00
parent 078675386f
commit 02c9bb4ac7
4 changed files with 10 additions and 5 deletions

View File

@@ -295,9 +295,12 @@ void ChatLLM::unload()
emit isModelLoadedChanged();
}
void ChatLLM::reload()
void ChatLLM::reload(const QString &modelName)
{
loadModel();
if (modelName.isEmpty())
loadModel();
else
loadModelPrivate(modelName);
}
void ChatLLM::generateName()