mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for retry
This commit is contained in:
@@ -6382,6 +6382,7 @@ def UI_2_Pinning(data):
|
|||||||
@socketio.on('back')
|
@socketio.on('back')
|
||||||
def UI_2_back(data):
|
def UI_2_back(data):
|
||||||
print("back")
|
print("back")
|
||||||
|
koboldai_vars.actions.clear_unused_options()
|
||||||
ignore = koboldai_vars.actions.pop()
|
ignore = koboldai_vars.actions.pop()
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
@@ -6392,12 +6393,14 @@ def UI_2_redo(data):
|
|||||||
if len(koboldai_vars.actions.get_current_options()) == 1:
|
if len(koboldai_vars.actions.get_current_options()) == 1:
|
||||||
koboldai_vars.actions.use_option(0)
|
koboldai_vars.actions.use_option(0)
|
||||||
|
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
# Event triggered when user clicks the retry button
|
# Event triggered when user clicks the retry button
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
@socketio.on('retry')
|
@socketio.on('retry')
|
||||||
def UI_2_retry(data):
|
def UI_2_retry(data):
|
||||||
if koboldai_vars.numseqs == 1:
|
|
||||||
|
if len(koboldai_vars.actions.get_current_options()) == 0:
|
||||||
UI_2_back(None)
|
UI_2_back(None)
|
||||||
koboldai_vars.actions.clear_unused_options()
|
koboldai_vars.actions.clear_unused_options()
|
||||||
koboldai_vars.lua_koboldbridge.feedback = None
|
koboldai_vars.lua_koboldbridge.feedback = None
|
||||||
|
Reference in New Issue
Block a user