Sync memory properly after random game request
This commit is contained in:
parent
f578dd1782
commit
72a7aac2c7
|
@ -4549,6 +4549,8 @@ def newGameRequest():
|
||||||
def randomGameRequest(topic, memory=""):
|
def randomGameRequest(topic, memory=""):
|
||||||
if(vars.noai):
|
if(vars.noai):
|
||||||
newGameRequest()
|
newGameRequest()
|
||||||
|
vars.memory = memory
|
||||||
|
emit('from_server', {'cmd': 'setmemory', 'data': vars.memory}, broadcast=True)
|
||||||
return
|
return
|
||||||
vars.recentrng = topic
|
vars.recentrng = topic
|
||||||
vars.recentrngm = memory
|
vars.recentrngm = memory
|
||||||
|
@ -4561,6 +4563,7 @@ def randomGameRequest(topic, memory=""):
|
||||||
vars.lua_koboldbridge.feedback = None
|
vars.lua_koboldbridge.feedback = None
|
||||||
actionsubmit("", force_submit=True, force_prompt_gen=True)
|
actionsubmit("", force_submit=True, force_prompt_gen=True)
|
||||||
vars.memory = memory
|
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
|
# Load desired settings from both the model and the users config file
|
||||||
if(not vars.model in ["InferKit", "Colab", "OAI", "ReadOnly", "TPUMeshTransformerGPTJ"]):
|
if(not vars.model in ["InferKit", "Colab", "OAI", "ReadOnly", "TPUMeshTransformerGPTJ"]):
|
||||||
|
|
Loading…
Reference in New Issue