mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-21 21:47:54 +00:00
Update personality.py
This commit is contained in:
parent
8cfe6d73c4
commit
d47da14c49
@ -1626,7 +1626,11 @@ class AIPersonality:
|
|||||||
Returns:
|
Returns:
|
||||||
bool: True if any antiprompt is found in the text (ignoring case), False otherwise.
|
bool: True if any antiprompt is found in the text (ignoring case), False otherwise.
|
||||||
"""
|
"""
|
||||||
anti_prompts = [self.app.config.discussion_prompt_separator]
|
start_header_id_template = self.config.start_header_id_template
|
||||||
|
end_header_id_template = self.config.end_header_id_template
|
||||||
|
separator_template = self.config.separator_template
|
||||||
|
|
||||||
|
anti_prompts = [start_header_id_template, self.app.config.discussion_prompt_separator, separator_template, end_header_id_template]
|
||||||
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user