术语表提示无视大小写
This commit is contained in:
@@ -19,7 +19,7 @@ class Glossary:
|
|||||||
flag = False
|
flag = False
|
||||||
prompt = "\nHere is the reference glossary:\n"
|
prompt = "\nHere is the reference glossary:\n"
|
||||||
for src, dst in self.glossary_dict.items():
|
for src, dst in self.glossary_dict.items():
|
||||||
if src in text:
|
if src.lower().strip() in text.lower():
|
||||||
prompt += f"{src}=>{dst}\n"
|
prompt += f"{src}=>{dst}\n"
|
||||||
flag = True
|
flag = True
|
||||||
prompt += "Glossary ends\n"
|
prompt += "Glossary ends\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user