mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-24 06:27:22 +00:00
Revert "Fix bug with resetting context with chatgpt model." (#859)
This reverts commit e0dcf6a14f
.
This commit is contained in:
parent
4a142d41f6
commit
379f1809f9
@ -302,10 +302,6 @@ void ChatLLM::resetResponse()
|
|||||||
void ChatLLM::resetContext()
|
void ChatLLM::resetContext()
|
||||||
{
|
{
|
||||||
regenerateResponse();
|
regenerateResponse();
|
||||||
if (m_isChatGPT && isModelLoaded()) {
|
|
||||||
ChatGPT *chatGPT = static_cast<ChatGPT*>(m_modelInfo.model);
|
|
||||||
chatGPT->setContext(QList<QString>());
|
|
||||||
}
|
|
||||||
m_ctx = LLModel::PromptContext();
|
m_ctx = LLModel::PromptContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user