From cd64c43f0e7e77b7db1c8bef1f4404983d397ca1 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 22 Jun 2022 12:12:52 -0400 Subject: [PATCH] Fix for action length --- koboldai_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index cb514786..b5c4e1b5 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -285,7 +285,7 @@ class KoboldStoryRegister(object): process_variable_changes("actions", "Selected Text", {"id": i, "text": text}, {"id": i, "text": old_text}) def __len__(self): - return self.action_count if self.action_count >=0 else 0 + return self.action_count+1 if self.action_count >=0 else 0 def __reversed__(self): return reversed(range(self.action_count+1))