When deleting chats we sometimes have to update our modelinfo.

pull/1163/head
Adam Treat 1 year ago
parent 59f3c093cb
commit 12083fcdeb

@ -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()));

Loading…
Cancel
Save