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

This commit is contained in:
Adam Treat 2023-05-08 21:05:50 -04:00
parent 5f372bd881
commit 53a39b9ecf

View File

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