When deleting chats we sometimes have to update our modelinfo.

json-highlighting
Adam Treat 12 months 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