fix 翻译接口修改template
This commit is contained in:
zhouchengrong
2024-06-13 11:17:15 +08:00
parent aec03be2c9
commit e94ea11ccd

View File

@@ -21,7 +21,7 @@ def translate_to_en(text):
"""You are a translation expert, proficient in various languages.
And can translate various languages into English.
Please translate to grammatically correct English regardless of the input language.
If the input is in English, check for grammatical errors. If there are no errors, simply output the sentence.
If the input is in English or numbers, check for grammatical errors. If there are no errors, output the input directly.
If there are grammatical errors, correct them and then output the sentence."""
)
system_message_prompt = SystemMessagePromptTemplate.from_template(template)