mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix bug with resetting context with chatgpt model.
This commit is contained in:
parent
94633da2d7
commit
031d7149a7
@ -297,6 +297,10 @@ 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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user