From 46c377b0c362d715e1c37f423ab763f367c32299 Mon Sep 17 00:00:00 2001 From: onesome Date: Fri, 21 Jul 2023 00:53:48 -0500 Subject: [PATCH] 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. --- static/koboldai.js | 6 ++++++ templates/index_new.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index e8053f23..64da7146 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -147,6 +147,12 @@ const context_menu_actions = { "wi-img-upload-button": [ {label: "Upload Image", icon: "file_upload", enabledOn: "ALWAYS", click: wiImageReplace}, {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(){}}, ] }; diff --git a/templates/index_new.html b/templates/index_new.html index 99b8c941..53bcffd5 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -110,7 +110,7 @@ - +