From e0acd1a7bf974a012855a41ae524cd2cb8e5a970 Mon Sep 17 00:00:00 2001 From: Branden Butler Date: Wed, 10 May 2023 14:54:32 -0500 Subject: [PATCH] Fix partial_completion not being reset --- examples/main/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index af31952e4..e79540d02 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -503,6 +503,7 @@ int main(int argc, char ** argv) { --n_remain; } else { // some user input remains from prompt or interaction, forward it to processing + partial_completion = ""; while ((int) embd_inp.size() > n_consumed) { embd.push_back(embd_inp[n_consumed]); last_n_tokens.erase(last_n_tokens.begin());