From 93662c84883a4cbc958d743855d01bdb971f31f2 Mon Sep 17 00:00:00 2001 From: ebolam Date: Sat, 27 Aug 2022 20:00:54 -0400 Subject: [PATCH] fix for missing author's notes --- koboldai_settings.py | 2 +- static/koboldai.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index 51c6a0f8..523637fa 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -1189,7 +1189,7 @@ class KoboldWorldInfo(object): if self.tokenizer is not None: token_length = len(self.tokenizer.encode(content)) else: - token_length = None + token_length = 0 if folder is None: folder = "root" diff --git a/static/koboldai.js b/static/koboldai.js index e9c552ee..14c8d100 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -275,6 +275,7 @@ function do_prompt(data) { item.append(span); item.setAttribute("old_text", data.value) item.classList.remove("pulse"); + assign_world_info_to_action(item, null); } //if we have a prompt we need to disable the theme area, or enable it if we don't if (data.value != "") { @@ -289,6 +290,7 @@ function do_prompt(data) { document.getElementById('input_text').disabled = false; document.getElementById('themerow').classList.remove("hidden"); } + } function do_story_text_length_updates(data) {