mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00: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