Fix bug with resetting context with chatgpt model.

recalcuatecontext_nonvirtual
Adam Treat 1 year ago
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…
Cancel
Save