summaryrefslogtreecommitdiffstats
path: root/gpt_adventure.py
diff options
context:
space:
mode:
Diffstat (limited to 'gpt_adventure.py')
-rwxr-xr-xgpt_adventure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpt_adventure.py b/gpt_adventure.py
index 7d40770..49138ff 100755
--- a/gpt_adventure.py
+++ b/gpt_adventure.py
@@ -118,6 +118,8 @@ def main() -> None:
state = new_character(Model(args.model))
while True:
+ state.autosave()
+
try:
msg = input("> ")
except EOFError:
@@ -168,7 +170,5 @@ def main() -> None:
print(response)
state.add_history(state.character, response)
- state.autosave()
-
main()