From 8f0933d4d7238563ebceb97e24614a355876df0c Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 24 Aug 2022 18:44:15 -0400 Subject: [PATCH] Fix --- koboldai_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index e0792f54..51c6a0f8 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -571,10 +571,10 @@ class story_settings(settings): if name == 'tokenizer' and not new_variable: self.memory_length = len(self.tokenizer.encode(self.memory)) self.prompt_length = len(self.tokenizer.encode(self.prompt)) - self.authornote_length = 0 if self.authornote="" else len(self.tokenizer.encode(self.authornotetemplate.replace("<|>", self.authornote))) + self.authornote_length = 0 if self.authornote=="" else len(self.tokenizer.encode(self.authornotetemplate.replace("<|>", self.authornote))) ignore = self.koboldai_vars.calc_ai_text() elif name == 'authornote' or name == 'authornotetemplate': - self.authornote_length = 0 if self.authornote="" else len(self.tokenizer.encode(self.authornotetemplate.replace("<|>", self.authornote))) + self.authornote_length = 0 if self.authornote=="" else len(self.tokenizer.encode(self.authornotetemplate.replace("<|>", self.authornote))) ignore = self.koboldai_vars.calc_ai_text() elif name == 'memory': self.memory_length = len(self.tokenizer.encode(self.memory))