From d8e821134ea453ec8735d6baecb95c6e794690dd Mon Sep 17 00:00:00 2001 From: Andriy Mulyar Date: Mon, 5 Jun 2023 14:25:37 -0400 Subject: [PATCH] Revert "Fix bug with resetting context with chatgpt model." (#859) This reverts commit 031d7149a7fdeb7c44d7204610a070f1186c2100. --- gpt4all-chat/chatllm.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gpt4all-chat/chatllm.cpp b/gpt4all-chat/chatllm.cpp index d4c8269e..6f6748d3 100644 --- a/gpt4all-chat/chatllm.cpp +++ b/gpt4all-chat/chatllm.cpp @@ -302,10 +302,6 @@ void ChatLLM::resetResponse() void ChatLLM::resetContext() { regenerateResponse(); - if (m_isChatGPT && isModelLoaded()) { - ChatGPT *chatGPT = static_cast(m_modelInfo.model); - chatGPT->setContext(QList()); - } m_ctx = LLModel::PromptContext(); }