feat
fix 翻译接口修改template
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user