mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 20:09:12 +00:00
Fix compatibility with Qt 6.4
Signed-off-by: Xu Zhen <xuzhen@users.noreply.github.com>
This commit is contained in:
@@ -964,7 +964,7 @@ void ChatLLM::saveState()
|
||||
if (m_llModelType == LLModelType::CHATGPT_) {
|
||||
m_state.clear();
|
||||
QDataStream stream(&m_state, QIODeviceBase::WriteOnly);
|
||||
stream.setVersion(QDataStream::Qt_6_5);
|
||||
stream.setVersion(QDataStream::Qt_6_4);
|
||||
ChatGPT *chatGPT = static_cast<ChatGPT*>(m_llModelInfo.model);
|
||||
stream << chatGPT->context();
|
||||
return;
|
||||
@@ -985,7 +985,7 @@ void ChatLLM::restoreState()
|
||||
|
||||
if (m_llModelType == LLModelType::CHATGPT_) {
|
||||
QDataStream stream(&m_state, QIODeviceBase::ReadOnly);
|
||||
stream.setVersion(QDataStream::Qt_6_5);
|
||||
stream.setVersion(QDataStream::Qt_6_4);
|
||||
ChatGPT *chatGPT = static_cast<ChatGPT*>(m_llModelInfo.model);
|
||||
QList<QString> context;
|
||||
stream >> context;
|
||||
|
Reference in New Issue
Block a user