fix jinja template

This commit is contained in:
hiyouga 2024-05-19 23:38:30 +08:00
parent 31a0564d4f
commit 10573e1639
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def _add_or_replace_eos_token(tokenizer: "PreTrainedTokenizer", eos_token: str)
def _jinja_escape(content: str) -> str:
return content.replace("\n", r"\n").replace("'", r"\'")
return content.replace("'", r"\'")
def _convert_slots_to_jinja(slots: "SLOTS", tokenizer: "PreTrainedTokenizer", placeholder: str = "content") -> str: