From 308417da3965d8ff4c8f3a81b3db6641ba1f37a6 Mon Sep 17 00:00:00 2001 From: ebolam Date: Sat, 19 Nov 2022 18:12:57 -0500 Subject: [PATCH] Fix for new chat mode UI --- koboldai_settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koboldai_settings.py b/koboldai_settings.py index 87e4b6bb..ed3cbfc9 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -208,6 +208,7 @@ class koboldai_vars(object): return "" return [], 0, 0+self.genamt, [] + if self.alt_gen: method = 2 else: @@ -276,6 +277,11 @@ class koboldai_vars(object): ######################################### Get Action Text by Sentence ######################################################## action_text_split = self.actions.to_sentences(submitted_text=submitted_text) + if action_text_split == []: + if return_text: + return "" + return [], 0, 0+self.genamt, [] + # Always add newlines on chat v2 if self.is_chat_v2(): action_text_split[-1][0] = action_text_split[-1][0].strip() + "\n"