mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Context Menu: Add stubs for new temporary stoppingcriteria idea
I think this would be cool! Ideas: - disable/grey when model doesnt support stopping criteria - shortcuts (maybe, this would def be a power user thing) - option to generate until EOS token - option to generate forever until user manually stops - (not super related but pixels away) make retry while generation is ongoing cancel generation and retry. same with undo.
This commit is contained in:
@@ -147,6 +147,12 @@ const context_menu_actions = {
|
|||||||
"wi-img-upload-button": [
|
"wi-img-upload-button": [
|
||||||
{label: "Upload Image", icon: "file_upload", enabledOn: "ALWAYS", click: wiImageReplace},
|
{label: "Upload Image", icon: "file_upload", enabledOn: "ALWAYS", click: wiImageReplace},
|
||||||
{label: "Use Generated Image", icon: "image", enabledOn: "GENERATED-IMAGE", click: wiImageUseGeneratedImage},
|
{label: "Use Generated Image", icon: "image", enabledOn: "GENERATED-IMAGE", click: wiImageUseGeneratedImage},
|
||||||
|
],
|
||||||
|
"submit-button": [
|
||||||
|
{label: "Generate", icon: "edit", enabledOn: "ALWAYS", click: function(){}},
|
||||||
|
null,
|
||||||
|
{label: "Finish Line", icon: "edit_off", enabledOn: "ALWAYS", click: function(){}},
|
||||||
|
{label: "Finish Sentence", icon: "edit_off", enabledOn: "ALWAYS", click: function(){}},
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -110,7 +110,7 @@
|
|||||||
<button type="button" class="btn action_button" style="width: 30px; padding: 0px;" onclick='play_pause_tts()' aria-label="play"><span id="play_tts" class="material-icons-outlined" style="font-size: 1.4em;">play_arrow</span></button>
|
<button type="button" class="btn action_button" style="width: 30px; padding: 0px;" onclick='play_pause_tts()' aria-label="play"><span id="play_tts" class="material-icons-outlined" style="font-size: 1.4em;">play_arrow</span></button>
|
||||||
<button type="button" class="btn action_button" style="width: 30px; padding: 0px;" onclick='stop_tts()' aria-label="play"><span id="stop_tts" class="material-icons-outlined" style="font-size: 1.4em;">stop</span></button>
|
<button type="button" class="btn action_button" style="width: 30px; padding: 0px;" onclick='stop_tts()' aria-label="play"><span id="stop_tts" class="material-icons-outlined" style="font-size: 1.4em;">stop</span></button>
|
||||||
</span>
|
</span>
|
||||||
<button type="button" class="btn action_button submit var_sync_alt_system_aibusy" system_aibusy=False id="btnsubmit" onclick="storySubmit();">Submit</button>
|
<button type="button" class="btn action_button submit var_sync_alt_system_aibusy" system_aibusy=False id="btnsubmit" onclick="storySubmit();" context-menu="submit-button">Submit</button>
|
||||||
<button type="button" class="btn action_button submited var_sync_alt_system_aibusy" system_aibusy=False id="btnsent"><img id="thinking" src="static/thinking.gif" class="force_center" onclick="socket.emit('abort','');"></button>
|
<button type="button" class="btn action_button submited var_sync_alt_system_aibusy" system_aibusy=False id="btnsent"><img id="thinking" src="static/thinking.gif" class="force_center" onclick="socket.emit('abort','');"></button>
|
||||||
<button type="button" class="btn action_button back var_sync_alt_system_aibusy" system_aibusy=False onclick="storyBack();" aria-label="undo"><span class="material-icons-outlined" style="font-size: 1.4em;">replay</span></button>
|
<button type="button" class="btn action_button back var_sync_alt_system_aibusy" system_aibusy=False onclick="storyBack();" aria-label="undo"><span class="material-icons-outlined" style="font-size: 1.4em;">replay</span></button>
|
||||||
<button type="button" class="btn action_button redo var_sync_alt_system_aibusy" system_aibusy=False onclick="storyRedo();" aria-label="redo"><span class="material-icons-outlined" style="font-size: 1.4em;">arrow_forward</span></button>
|
<button type="button" class="btn action_button redo var_sync_alt_system_aibusy" system_aibusy=False onclick="storyRedo();" aria-label="redo"><span class="material-icons-outlined" style="font-size: 1.4em;">arrow_forward</span></button>
|
||||||
|
Reference in New Issue
Block a user