From e3f839f610be1270247195b1d6136bf3832ad87f Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 14 Oct 2022 18:32:33 -0400 Subject: [PATCH] Duplicate prompt fix --- koboldai_settings.py | 2 +- templates/settings flyout.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index 758baf0e..98c7d725 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -408,7 +408,7 @@ class koboldai_vars(object): prompt_length = 0 prompt_text = "" for item in action_text_split: - if -1 not in item[1]: + if -1 not in item[1] or item[3]: #We've finished going through our prompt. Stop break if self.tokenizer is None: diff --git a/templates/settings flyout.html b/templates/settings flyout.html index 9c742d73..1830fb8e 100644 --- a/templates/settings flyout.html +++ b/templates/settings flyout.html @@ -44,8 +44,11 @@ {% if not on_colab %} -
Share with Horde
- help_icon +
+ Share with Horde + help_icon +
+ {% endif %}