mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Allow regenerating random story using Retry button
Commit b55e5a8e0b
removed this feature, so
this commit adds it back.
This commit is contained in:
@ -2862,6 +2862,9 @@ def actionretry(data):
|
|||||||
if(vars.noai):
|
if(vars.noai):
|
||||||
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
|
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
|
||||||
return
|
return
|
||||||
|
if(vars.recentrng is not None):
|
||||||
|
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
|
||||||
|
return
|
||||||
if actionback():
|
if actionback():
|
||||||
actionsubmit("", actionmode=vars.actionmode, force_submit=True)
|
actionsubmit("", actionmode=vars.actionmode, force_submit=True)
|
||||||
send_debug()
|
send_debug()
|
||||||
|
Reference in New Issue
Block a user