Revert "Fix bug with resetting context with chatgpt model." (#859)

This reverts commit 031d7149a7.
This commit is contained in:
Andriy Mulyar 2023-06-05 14:25:37 -04:00 committed by GitHub
parent ecfeba2710
commit d8e821134e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,10 +302,6 @@ void ChatLLM::resetResponse()
void ChatLLM::resetContext()
{
regenerateResponse();
if (m_isChatGPT && isModelLoaded()) {
ChatGPT *chatGPT = static_cast<ChatGPT*>(m_modelInfo.model);
chatGPT->setContext(QList<QString>());
}
m_ctx = LLModel::PromptContext();
}