From 72a7aac2c7f089b74c8c782e57d6a98ec0e2139b Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Thu, 20 Jan 2022 15:14:55 -0500 Subject: [PATCH] Sync memory properly after random game request --- aiserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiserver.py b/aiserver.py index 7c9598ce..0d32a014 100644 --- a/aiserver.py +++ b/aiserver.py @@ -4549,6 +4549,8 @@ def newGameRequest(): def randomGameRequest(topic, memory=""): if(vars.noai): newGameRequest() + vars.memory = memory + emit('from_server', {'cmd': 'setmemory', 'data': vars.memory}, broadcast=True) return vars.recentrng = topic vars.recentrngm = memory @@ -4561,6 +4563,7 @@ def randomGameRequest(topic, memory=""): vars.lua_koboldbridge.feedback = None actionsubmit("", force_submit=True, force_prompt_gen=True) vars.memory = memory + emit('from_server', {'cmd': 'setmemory', 'data': vars.memory}, broadcast=True) # Load desired settings from both the model and the users config file if(not vars.model in ["InferKit", "Colab", "OAI", "ReadOnly", "TPUMeshTransformerGPTJ"]):