From a18dae8f69d245b468e5d760334cf60d1c31bf93 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 22 Sep 2024 19:55:43 +0300 Subject: [PATCH] Remove "include newlines" checkbox from context formatting settings --- default/content/presets/context/Adventure.json | 3 +-- .../content/presets/context/Alpaca-Roleplay.json | 1 - .../presets/context/Alpaca-Single-Turn.json | 3 +-- default/content/presets/context/Alpaca.json | 1 - .../content/presets/context/ChatML-Names.json | 1 - default/content/presets/context/ChatML.json | 1 - default/content/presets/context/Command R.json | 3 +-- default/content/presets/context/Default.json | 3 +-- .../context/DreamGen Role-Play V1 ChatML.json | 3 +-- .../context/DreamGen Role-Play V1 Llama3.json | 3 +-- default/content/presets/context/Gemma 2.json | 3 +-- default/content/presets/context/Libra-32B.json | 3 +-- .../content/presets/context/Lightning 1.1.json | 3 +-- .../content/presets/context/Llama 2 Chat.json | 1 - .../presets/context/Llama 3 Instruct.json | 3 +-- .../presets/context/Llama-3-Instruct-Names.json | 1 - default/content/presets/context/Minimalist.json | 3 +-- default/content/presets/context/Mistral V1.json | 1 - .../content/presets/context/Mistral V2 & V3.json | 1 - .../presets/context/Mistral V3-Tekken.json | 1 - default/content/presets/context/NovelAI.json | 3 +-- default/content/presets/context/OldDefault.json | 3 +-- default/content/presets/context/Phi.json | 3 +-- default/content/presets/context/Pygmalion.json | 3 +-- default/content/presets/context/Story.json | 3 +-- default/content/presets/context/Synthia.json | 1 - .../presets/context/simple-proxy-for-tavern.json | 3 +-- default/content/settings.json | 1 - public/index.html | 5 ----- public/script.js | 2 +- public/scripts/power-user.js | 16 ---------------- public/scripts/utils.js | 8 +------- 32 files changed, 19 insertions(+), 74 deletions(-) diff --git a/default/content/presets/context/Adventure.json b/default/content/presets/context/Adventure.json index 3318d518f..03ad99837 100644 --- a/default/content/presets/context/Adventure.json +++ b/default/content/presets/context/Adventure.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": false, "trim_sentences": false, - "include_newline": false, "single_line": true, "name": "Adventure" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Alpaca-Roleplay.json b/default/content/presets/context/Alpaca-Roleplay.json index e7a45c2d8..908258fc7 100644 --- a/default/content/presets/context/Alpaca-Roleplay.json +++ b/default/content/presets/context/Alpaca-Roleplay.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Alpaca-Roleplay" } diff --git a/default/content/presets/context/Alpaca-Single-Turn.json b/default/content/presets/context/Alpaca-Single-Turn.json index ea58fe9d5..ea0b08816 100644 --- a/default/content/presets/context/Alpaca-Single-Turn.json +++ b/default/content/presets/context/Alpaca-Single-Turn.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": false, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Alpaca-Single-Turn" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Alpaca.json b/default/content/presets/context/Alpaca.json index 6e9418549..0432976f1 100644 --- a/default/content/presets/context/Alpaca.json +++ b/default/content/presets/context/Alpaca.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Alpaca" } diff --git a/default/content/presets/context/ChatML-Names.json b/default/content/presets/context/ChatML-Names.json index 691d3179c..8aa30b516 100644 --- a/default/content/presets/context/ChatML-Names.json +++ b/default/content/presets/context/ChatML-Names.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "ChatML-Names" } diff --git a/default/content/presets/context/ChatML.json b/default/content/presets/context/ChatML.json index 2184e91d3..4b8610b7a 100644 --- a/default/content/presets/context/ChatML.json +++ b/default/content/presets/context/ChatML.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "ChatML" } diff --git a/default/content/presets/context/Command R.json b/default/content/presets/context/Command R.json index 4d77553d1..01410e517 100644 --- a/default/content/presets/context/Command R.json +++ b/default/content/presets/context/Command R.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Command R" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Default.json b/default/content/presets/context/Default.json index 7c8a231cf..de84def35 100644 --- a/default/content/presets/context/Default.json +++ b/default/content/presets/context/Default.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Default" -} \ No newline at end of file +} diff --git a/default/content/presets/context/DreamGen Role-Play V1 ChatML.json b/default/content/presets/context/DreamGen Role-Play V1 ChatML.json index 9042ed758..6b2d8bc61 100644 --- a/default/content/presets/context/DreamGen Role-Play V1 ChatML.json +++ b/default/content/presets/context/DreamGen Role-Play V1 ChatML.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": false, "trim_sentences": true, - "include_newline": false, "single_line": false, "name": "DreamGen Role-Play V1 ChatML" -} \ No newline at end of file +} diff --git a/default/content/presets/context/DreamGen Role-Play V1 Llama3.json b/default/content/presets/context/DreamGen Role-Play V1 Llama3.json index 965e9632c..aa51e64f8 100644 --- a/default/content/presets/context/DreamGen Role-Play V1 Llama3.json +++ b/default/content/presets/context/DreamGen Role-Play V1 Llama3.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": false, "trim_sentences": true, - "include_newline": false, "single_line": false, "name": "DreamGen Role-Play V1 Llama3" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Gemma 2.json b/default/content/presets/context/Gemma 2.json index 7e8dba55b..768346957 100644 --- a/default/content/presets/context/Gemma 2.json +++ b/default/content/presets/context/Gemma 2.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Gemma 2" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Libra-32B.json b/default/content/presets/context/Libra-32B.json index b5dee2872..f7dce961b 100644 --- a/default/content/presets/context/Libra-32B.json +++ b/default/content/presets/context/Libra-32B.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Libra-32B" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Lightning 1.1.json b/default/content/presets/context/Lightning 1.1.json index 3b0190c92..24878e009 100644 --- a/default/content/presets/context/Lightning 1.1.json +++ b/default/content/presets/context/Lightning 1.1.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Lightning 1.1" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Llama 2 Chat.json b/default/content/presets/context/Llama 2 Chat.json index be18ad69d..d0cd16ca0 100644 --- a/default/content/presets/context/Llama 2 Chat.json +++ b/default/content/presets/context/Llama 2 Chat.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Llama 2 Chat" } diff --git a/default/content/presets/context/Llama 3 Instruct.json b/default/content/presets/context/Llama 3 Instruct.json index 62bbd0753..cbc155504 100644 --- a/default/content/presets/context/Llama 3 Instruct.json +++ b/default/content/presets/context/Llama 3 Instruct.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Llama 3 Instruct" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Llama-3-Instruct-Names.json b/default/content/presets/context/Llama-3-Instruct-Names.json index 2850293e0..a1815e02c 100644 --- a/default/content/presets/context/Llama-3-Instruct-Names.json +++ b/default/content/presets/context/Llama-3-Instruct-Names.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Llama-3-Instruct-Names" } diff --git a/default/content/presets/context/Minimalist.json b/default/content/presets/context/Minimalist.json index cc7550c51..107da83b3 100644 --- a/default/content/presets/context/Minimalist.json +++ b/default/content/presets/context/Minimalist.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Minimalist" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Mistral V1.json b/default/content/presets/context/Mistral V1.json index 75bb82cb1..93d037941 100644 --- a/default/content/presets/context/Mistral V1.json +++ b/default/content/presets/context/Mistral V1.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Mistral V1" } diff --git a/default/content/presets/context/Mistral V2 & V3.json b/default/content/presets/context/Mistral V2 & V3.json index 3102e1112..bc41b01a1 100644 --- a/default/content/presets/context/Mistral V2 & V3.json +++ b/default/content/presets/context/Mistral V2 & V3.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Mistral V2 & V3" } diff --git a/default/content/presets/context/Mistral V3-Tekken.json b/default/content/presets/context/Mistral V3-Tekken.json index 26e196b5b..e5b211606 100644 --- a/default/content/presets/context/Mistral V3-Tekken.json +++ b/default/content/presets/context/Mistral V3-Tekken.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Mistral V3-Tekken" } diff --git a/default/content/presets/context/NovelAI.json b/default/content/presets/context/NovelAI.json index 1a7887a90..8914a953d 100644 --- a/default/content/presets/context/NovelAI.json +++ b/default/content/presets/context/NovelAI.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "NovelAI" -} \ No newline at end of file +} diff --git a/default/content/presets/context/OldDefault.json b/default/content/presets/context/OldDefault.json index 542971f21..81dd70911 100644 --- a/default/content/presets/context/OldDefault.json +++ b/default/content/presets/context/OldDefault.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "OldDefault" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Phi.json b/default/content/presets/context/Phi.json index 2eb7a98d8..79a27ada9 100644 --- a/default/content/presets/context/Phi.json +++ b/default/content/presets/context/Phi.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Phi" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Pygmalion.json b/default/content/presets/context/Pygmalion.json index 68de8c1d0..eab73535c 100644 --- a/default/content/presets/context/Pygmalion.json +++ b/default/content/presets/context/Pygmalion.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Pygmalion" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Story.json b/default/content/presets/context/Story.json index 26f70937b..525a06dc0 100644 --- a/default/content/presets/context/Story.json +++ b/default/content/presets/context/Story.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Story" -} \ No newline at end of file +} diff --git a/default/content/presets/context/Synthia.json b/default/content/presets/context/Synthia.json index 8bffe47d3..1fb639c0b 100644 --- a/default/content/presets/context/Synthia.json +++ b/default/content/presets/context/Synthia.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "Synthia" } diff --git a/default/content/presets/context/simple-proxy-for-tavern.json b/default/content/presets/context/simple-proxy-for-tavern.json index 38003c68d..0346c2f32 100644 --- a/default/content/presets/context/simple-proxy-for-tavern.json +++ b/default/content/presets/context/simple-proxy-for-tavern.json @@ -6,7 +6,6 @@ "allow_jailbreak": false, "always_force_name2": true, "trim_sentences": false, - "include_newline": false, "single_line": false, "name": "simple-proxy-for-tavern" -} \ No newline at end of file +} diff --git a/default/content/settings.json b/default/content/settings.json index 50480a26d..4aa8301ab 100644 --- a/default/content/settings.json +++ b/default/content/settings.json @@ -90,7 +90,6 @@ "pin_examples": false, "strip_examples": false, "trim_sentences": false, - "include_newline": false, "always_force_name2": true, "user_prompt_bias": "", "show_user_prompt_bias": true, diff --git a/public/index.html b/public/index.html index f306f5a1f..310516370 100644 --- a/public/index.html +++ b/public/index.html @@ -3251,11 +3251,6 @@ Trim Incomplete Sentences - -