From 694558e0a611cc7eaaf550540db467655bdb674b Mon Sep 17 00:00:00 2001 From: Concedo Date: Sun, 1 Oct 2023 14:31:18 +0800 Subject: [PATCH] add retain state button for grammar --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index a5400dd..cad2d3e 100644 --- a/index.html +++ b/index.html @@ -5846,6 +5846,7 @@ } document.getElementById("setgrammar").disabled = !is_using_kcpp_with_grammar(); + document.getElementById("grammar_retain_state").disabled = document.getElementById("setgrammar").disabled; if(custom_kobold_endpoint!="") { @@ -7029,6 +7030,7 @@ if(localsettings.grammar && localsettings.grammar!="") { submit_payload.params.grammar = localsettings.grammar; + submit_payload.params.grammar_retain_state = document.getElementById("grammar_retain_state").checked; } } @@ -10226,6 +10228,8 @@
Additional Configs ?Grammar Sampling (KCPP) - Allows you to constrain output to fit specific structures.
+
Retain
+