From cee1774554aa28457751c811c13fc437006c73b9 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Sun, 21 Apr 2024 00:37:03 +0900 Subject: [PATCH 1/3] TC/kobold/novel sampler panel layout shuffle --- public/css/st-tailwind.css | 10 +++- public/index.html | 101 +++++++++++++++++-------------------- 2 files changed, 56 insertions(+), 55 deletions(-) diff --git a/public/css/st-tailwind.css b/public/css/st-tailwind.css index 6018577b2..c911104c1 100644 --- a/public/css/st-tailwind.css +++ b/public/css/st-tailwind.css @@ -86,6 +86,10 @@ margin: 5px; } +.marginLeft5 { + margin-left: 5px; +} + .overflowYAuto { overflow-y: auto; } @@ -249,6 +253,10 @@ flex-basis: 48% } +.flexBasis30p { + flex-basis: 30%; +} + .flex-container { display: flex; gap: 5px; @@ -543,4 +551,4 @@ textarea:disabled { height: 30px; text-align: center; padding: 5px; -} +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index ccd952fc7..f405c9d0c 100644 --- a/public/index.html +++ b/public/index.html @@ -140,10 +140,10 @@
- -
+
@@ -162,10 +162,10 @@
- -
+
@@ -183,7 +183,7 @@ -
+
@@ -199,7 +199,7 @@
-
+
@@ -320,7 +320,7 @@
- Repetition Penalty Range + Rep Pen Range
@@ -372,7 +372,7 @@
- Tail Free Sampling + TFS
@@ -787,7 +787,7 @@
-
+
Temperature
@@ -795,7 +795,7 @@
-
+
Top K
@@ -803,7 +803,7 @@
-
+
Top P
@@ -811,7 +811,7 @@
-
+
Typical P
@@ -819,7 +819,7 @@
-
+
Min P
@@ -827,7 +827,7 @@
-
+
Top A
@@ -835,29 +835,29 @@
-
+
- Tail Free Sampling + TFS
-
+
Repetition Penalty
-
+
- Repetition Penalty Range + Rep Pen Range
-
+
Repetition Penalty Slope @@ -891,7 +891,7 @@

-
+
-
+
Seed @@ -1184,7 +1184,7 @@
-
+
Temperature
@@ -1192,7 +1192,7 @@
-
+
Top K
@@ -1200,7 +1200,7 @@
-
+
Top P
@@ -1208,7 +1208,7 @@
-
+
Typical P
@@ -1216,7 +1216,7 @@
-
+
Min P
@@ -1224,7 +1224,7 @@
-
+
Top A
@@ -1232,15 +1232,15 @@
-
+
- Tail Free Sampling + TFS
-
+
Epsilon Cutoff
@@ -1248,7 +1248,7 @@
-
+
Eta Cutoff
@@ -1256,42 +1256,42 @@
-
+
Repetition Penalty
-
- Repetition Penalty Range +
+ Rep Pen Range
-
+
Encoder Penalty
-
+
Frequency Penalty
-
+
Presence Penalty
-
+
No Repeat Ngram Size
-
+
Min Length
-
+
Maximum tokens/second @@ -3529,7 +3529,7 @@ - @@ -4446,9 +4446,7 @@
@@ -6058,4 +6051,4 @@ - + \ No newline at end of file From 3a5886f53a20dc61f6d8ca2cafe480db7dd314d1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 20 Apr 2024 20:20:51 +0300 Subject: [PATCH 2/3] Change generation type from regenerate to normal if the non-streaming generation fails to produce any text --- public/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index dc0e60862..7eeb576ce 100644 --- a/public/script.js +++ b/public/script.js @@ -4129,8 +4129,12 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu // regenerate with character speech reenforced // to make sure we leave on swipe type while also adding the name2 appendage await delay(1000); + // A message was already deleted on regeneration, so instead treat is as a normal gen + if (type === 'regenerate') { + type = 'normal'; + } // The first await is for waiting for the generate to start. The second one is waiting for it to finish - const result = await await Generate(type, { automatic_trigger, force_name2: true, quiet_prompt, skipWIAN, force_chid, maxLoops: maxLoops - 1 }); + const result = await await Generate(type, { automatic_trigger, force_name2: true, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName, maxLoops: maxLoops - 1 }); return result; } From 1e0b76f4fce28c2fe331d9b842d19e5fed34981b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 20 Apr 2024 20:25:21 +0300 Subject: [PATCH 3/3] Unblock Ctrl+1-9 keystrokes --- public/scripts/RossAscends-mods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 7c371b00f..94c958579 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -1202,7 +1202,7 @@ export function initRossMods() { if (event.ctrlKey && /^[1-9]$/.test(event.key)) { // This will eventually be to trigger quick replies - event.preventDefault(); + // event.preventDefault(); console.log('Ctrl +' + event.key + ' pressed!'); } }