mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Bug fix for context generator
This commit is contained in:
@@ -185,7 +185,7 @@ class koboldai_vars(object):
|
|||||||
prompt_text = self.tokenizer.decode(self.tokenizer.encode(self.prompt)[-self.max_prompt_length-1:])
|
prompt_text = self.tokenizer.decode(self.tokenizer.encode(self.prompt)[-self.max_prompt_length-1:])
|
||||||
|
|
||||||
text += prompt_text
|
text += prompt_text
|
||||||
context.append({"type": "prompt", "text": self.prompt_text})
|
context.append({"type": "prompt", "text": prompt_text})
|
||||||
self.prompt_in_ai = True
|
self.prompt_in_ai = True
|
||||||
else:
|
else:
|
||||||
self.prompt_in_ai = False
|
self.prompt_in_ai = False
|
||||||
|
Reference in New Issue
Block a user