提示词全部改为英文

This commit is contained in:
xunbu
2025-08-30 15:09:24 +08:00
parent f21e931697
commit eef56aa578
2 changed files with 14 additions and 16 deletions

View File

@@ -17,12 +17,12 @@ class Glossary:
def append_system_prompt(self, text: str):
flag = False
prompt = "\n以下为参考术语表:\n"
prompt = "\nHere is the reference glossary:\n"
for src, dst in self.glossary_dict.items():
if src in text:
prompt += f"{src}=>{dst}\n"
flag = True
prompt += "术语表结束\n"
prompt += "Glossary ends\n"
if flag:
return prompt
else: