chatllm: do not attempt to serialize incompatible state (#1742)

This commit is contained in:
Jared Van Bortel
2023-12-12 11:45:03 -05:00
committed by GitHub
parent 9481762802
commit 0600f551b3
3 changed files with 18 additions and 9 deletions

View File

@@ -435,8 +435,7 @@ bool Chat::deserialize(QDataStream &stream, int version)
if (!m_chatModel->deserialize(stream, version))
return false;
if (!deserializeKV || discardKV)
m_llmodel->setStateFromText(m_chatModel->text());
m_llmodel->setStateFromText(m_chatModel->text());
emit chatModelChanged();
return stream.status() == QDataStream::Ok;