Don't process the system prompt when restoring state.

This commit is contained in:
Adam Treat 2023-07-10 16:20:19 -04:00
parent 98dd2ab4bc
commit 3e3b05a2a4

View File

@ -746,6 +746,7 @@ void ChatLLM::restoreState()
#if defined(DEBUG)
qDebug() << "restoreState" << m_llmThread.objectName() << "size:" << m_state.size();
#endif
m_processedSystemPrompt = true;
m_llModelInfo.model->restoreState(static_cast<const uint8_t*>(reinterpret_cast<void*>(m_state.data())));
m_state.clear();
m_state.resize(0);