chatllm: fix undefined behavior in resetContext

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2024-02-27 13:46:47 -05:00 committed by AT
parent 0fc071d228
commit 2a91ffd73f

View File

@ -480,7 +480,7 @@ void ChatLLM::resetResponse()
void ChatLLM::resetContext()
{
regenerateResponse();
resetResponse();
m_processedSystemPrompt = false;
m_ctx = LLModel::PromptContext();
}