mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-08 13:39:06 +00:00
Restore the model when switching chats.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user