Don't keep this in memory when it is not needed.

pull/520/head
Adam Treat 1 year ago
parent 5f372bd881
commit 53a39b9ecf

@ -474,4 +474,6 @@ void ChatLLM::restoreState()
qDebug() << "chatllm restoreState" << m_chat->id() << "size:" << m_state.size();
#endif
m_llmodel->restoreState(static_cast<const uint8_t*>(reinterpret_cast<void*>(m_state.data())));
m_state.clear();
m_state.resize(0);
}

Loading…
Cancel
Save