Fix for issue #2080 where the GUI appears to hang when a chat with a large

model is deleted. There is no reason to save the context for a chat that
is being deleted.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat
2024-03-06 12:59:34 -05:00
committed by AT
parent 44717682a7
commit 17dee02287
5 changed files with 14 additions and 1 deletions

View File

@@ -286,6 +286,11 @@ void Chat::unloadAndDeleteLater()
unloadModel();
}
void Chat::markForDeletion()
{
m_llmodel->setMarkedForDeletion(true);
}
void Chat::unloadModel()
{
stopGenerating();