Update personality.py

This commit is contained in:
Saifeddine ALOUI 2024-05-29 14:08:12 +02:00 committed by GitHub
parent 170f99a087
commit 3a2bc02c1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1630,7 +1630,7 @@ class AIPersonality:
end_header_id_template = self.config.end_header_id_template end_header_id_template = self.config.end_header_id_template
separator_template = self.config.separator_template separator_template = self.config.separator_template
anti_prompts = [start_header_id_template, self.app.config.discussion_prompt_separator, end_header_id_template] anti_prompts = [start_header_id_template, self.app.config.discussion_prompt_separator]
if self.app.config.separator_template!="\n": if self.app.config.separator_template!="\n":
anti_prompts.append(self.app.config.separator_template) anti_prompts.append(self.app.config.separator_template)