From 2a91ffd73f9f8b58cfb5befcf8a231fbef71677c Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Tue, 27 Feb 2024 13:46:47 -0500 Subject: [PATCH] chatllm: fix undefined behavior in resetContext Signed-off-by: Jared Van Bortel --- gpt4all-chat/chatllm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/chatllm.cpp b/gpt4all-chat/chatllm.cpp index 36b6febb..cc1bebe3 100644 --- a/gpt4all-chat/chatllm.cpp +++ b/gpt4all-chat/chatllm.cpp @@ -480,7 +480,7 @@ void ChatLLM::resetResponse() void ChatLLM::resetContext() { - regenerateResponse(); + resetResponse(); m_processedSystemPrompt = false; m_ctx = LLModel::PromptContext(); }