fix Theme list not showing all themes

fix for AN depth off by 1 in context viewer
This commit is contained in:
ebolam
2022-09-15 19:18:32 -04:00
parent e46872ce89
commit a3e33c922f
4 changed files with 4 additions and 3 deletions

View File

@@ -6846,6 +6846,7 @@ def ui2_connect():
#Send all variables to client
koboldai_vars.send_to_ui()
UI_2_load_cookies()
UI_2_theme_list_refresh(None)
pass
#==================================================================#

View File

@@ -197,7 +197,7 @@ class koboldai_vars(object):
authors_note_final = self.authornotetemplate.replace("<|>", self.authornote)
used_all_tokens = False
for i in range(len(self.actions)-1, -1, -1):
if len(self.actions) - i == self.andepth and self.authornote != "":
if len(self.actions) - i - 1 == self.andepth and self.authornote != "":
game_text = "{}{}".format(authors_note_final, game_text)
game_context.insert(0, {"type": "authors_note", "text": authors_note_final})
if self.actions.actions[i]["Selected Text Length"]+used_tokens <= token_budget and not used_all_tokens:

View File

@@ -171,7 +171,7 @@
--radius_wi_card: 10px;
--radius_palette_card: 10px;
--radius_settings_button: 5px;
--tabs_rounding: 2px;
--tabs_rounding: 5px;

View File

@@ -178,7 +178,7 @@
--radius_wi_card: 10px;
--radius_palette_card: 10px;
--radius_settings_button: 10px;
--tabs_rounding: 2px;
--tabs_rounding: 10px;