When deleting chats we sometimes have to update our modelinfo.

This commit is contained in:
Adam Treat 2023-07-09 14:52:08 -04:00
parent 59f3c093cb
commit 12083fcdeb

View File

@ -188,6 +188,7 @@ bool ChatLLM::loadModel(const ModelInfo &modelInfo)
#endif
restoreState();
emit isModelLoadedChanged(true);
setModelInfo(modelInfo);
Q_ASSERT(!m_modelInfo.filename().isEmpty());
if (m_modelInfo.filename().isEmpty())
emit modelLoadingError(QString("Modelinfo is left null for %1").arg(modelInfo.filename()));