Don't process the system prompt when restoring state.

threadcount
Adam Treat 12 months ago
parent 98dd2ab4bc
commit 3e3b05a2a4

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

Loading…
Cancel
Save