1
1
mirror of https://github.com/KoboldAI/KoboldAI-Client.git synced 2025-01-18 11:34:04 +01:00

Merge pull request from VE-FORBRYDERNE/retry-randomgame

Allow regenerating random story using Retry button
This commit is contained in:
henk717 2022-03-24 12:57:04 +01:00 committed by GitHub
commit e4c72ca2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()