diff --git a/chatllm.cpp b/chatllm.cpp index e5033679..64d0912d 100644 --- a/chatllm.cpp +++ b/chatllm.cpp @@ -474,4 +474,6 @@ void ChatLLM::restoreState() qDebug() << "chatllm restoreState" << m_chat->id() << "size:" << m_state.size(); #endif m_llmodel->restoreState(static_cast(reinterpret_cast(m_state.data()))); + m_state.clear(); + m_state.resize(0); }