mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-18 11:34:04 +01:00
Merge pull request #104 from VE-FORBRYDERNE/retry-randomgame
Allow regenerating random story using Retry button
This commit is contained in:
commit
e4c72ca2e5
@ -2862,6 +2862,10 @@ def actionretry(data):
|
||||
if(vars.noai):
|
||||
emit('from_server', {'cmd': 'errmsg', 'data': "Retry function unavailable in Read Only mode."})
|
||||
return
|
||||
if(vars.recentrng is not None):
|
||||
if(not vars.aibusy):
|
||||
randomGameRequest(vars.recentrng, memory=vars.recentrngm)
|
||||
return
|
||||
if actionback():
|
||||
actionsubmit("", actionmode=vars.actionmode, force_submit=True)
|
||||
send_debug()
|
||||
|
Loading…
Reference in New Issue
Block a user