From c0a9377849840a56d9f2100ec8eb8ad5512307d2 Mon Sep 17 00:00:00 2001 From: Hayden Johnson Date: Wed, 25 Sep 2024 13:19:03 -0700 Subject: [PATCH] Fix issue with last line not being printed --- assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assistant.py b/assistant.py index 2bf5aa5..1775e12 100755 --- a/assistant.py +++ b/assistant.py @@ -132,7 +132,7 @@ def chat(message, stream=True): if not stream: result = completion['message']['content'] if stream: - print() + print(large_text, flush=True) history.append({"role": 'assistant', 'content': result}) return result