summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2023-02-14 17:11:19 -0800
committerRose Hogenson <rhogenson@posteo.net>2023-02-14 17:11:19 -0800
commitd53a534f1f2f26661cb2f1104c9b6fff76a244f5 (patch)
tree8b51a0f8854946e09bdb8e44a817e93e57769927
parent11fcfb93c0be452d13d6bf38eecc3812155079e6 (diff)
downloadgpt-adventure-main.tar.zst
Fix /more command.HEADmain
-rwxr-xr-xgpt_adventure.py3
1 files changed, 2 insertions, 1 deletions
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()