fix format issues

This commit is contained in:
黄伟韬 2024-08-15 20:38:32 +08:00
parent 91affc2a60
commit 1de01c1f24

View file

@ -37,7 +37,7 @@ class RoleZeroContextBuilder(BaseContextBuilder):
@staticmethod
def replace_content_of_example_tag(self, text: str, new_example_content: str) -> str:
pattern = "# Past Experience\n<experience>"
replaced_text = text.replace(pattern, "# Example\n" + new_example_content)
replaced_text = text.replace(pattern, "# Past Example\n" + new_example_content)
return replaced_text
@staticmethod