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