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"