From d53a534f1f2f26661cb2f1104c9b6fff76a244f5 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 14 Feb 2023 17:11:19 -0800 Subject: Fix /more command. --- gpt_adventure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpt_adventure.py b/gpt_adventure.py index dd86adf..a8dfc8f 100755 --- a/gpt_adventure.py +++ b/gpt_adventure.py @@ -143,7 +143,8 @@ def main() -> None: elif msg == "/more": response = state.generate(state.prompt()) print(response) - state.history[-1] += response + state.history[-1] += " " + response + continue elif msg == "/retry": state.rollback_history() clear() -- cgit v1.3.1