Skip to content

Commit 4e378fb

Browse files
committed
Clear assistant_ss before returning control to loop
1 parent f5c209f commit 4e378fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ int main(int argc, char ** argv) {
928928
if (format_res.tool_was_called) {
929929
auto format_res_tok = common_tokenize(ctx, format_res.formatted, false, true);
930930
embd_inp.insert(embd_inp.end(), format_res_tok.begin(), format_res_tok.end());
931+
assistant_ss.str("");
931932

932933
} else {
933934
is_interacting = true;

0 commit comments

Comments
 (0)