Make sure we don't keep the trimmed memory in `randomGameRequest()`
This commit is contained in:
parent
7645db9dd4
commit
de8a5046df
|
@ -4249,9 +4249,10 @@ def randomGameRequest(topic, memory=""):
|
||||||
return
|
return
|
||||||
vars.recentrng = topic
|
vars.recentrng = topic
|
||||||
newGameRequest()
|
newGameRequest()
|
||||||
|
_memory = memory
|
||||||
if(len(memory) > 0):
|
if(len(memory) > 0):
|
||||||
memory = memory.rstrip() + "\n\n"
|
_memory = memory.rstrip() + "\n\n"
|
||||||
vars.memory = memory + "You generate the following " + topic + " story concept :"
|
vars.memory = _memory + "You generate the following " + topic + " story concept :"
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue