mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-03 01:24:53 +00:00
When deleting chats we sometimes have to update our modelinfo.
This commit is contained in:
@@ -188,6 +188,7 @@ bool ChatLLM::loadModel(const ModelInfo &modelInfo)
|
|||||||
#endif
|
#endif
|
||||||
restoreState();
|
restoreState();
|
||||||
emit isModelLoadedChanged(true);
|
emit isModelLoadedChanged(true);
|
||||||
|
setModelInfo(modelInfo);
|
||||||
Q_ASSERT(!m_modelInfo.filename().isEmpty());
|
Q_ASSERT(!m_modelInfo.filename().isEmpty());
|
||||||
if (m_modelInfo.filename().isEmpty())
|
if (m_modelInfo.filename().isEmpty())
|
||||||
emit modelLoadingError(QString("Modelinfo is left null for %1").arg(modelInfo.filename()));
|
emit modelLoadingError(QString("Modelinfo is left null for %1").arg(modelInfo.filename()));
|
||||||
|
Reference in New Issue
Block a user