Merge pull request #68 from VE-FORBRYDERNE/patch

Sync memory properly after random game request
This commit is contained in:
henk717 2022-01-21 00:48:57 +01:00 committed by GitHub
commit d209c2f7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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"]):