From c7336e48d8dccb8577fe76b5c53316e23b26a67a Mon Sep 17 00:00:00 2001 From: zh-plus Date: Wed, 26 Jun 2024 12:21:48 +0800 Subject: [PATCH] Improve the stop_sequence. --- openlrc/prompter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlrc/prompter.py b/openlrc/prompter.py index 032a6f3..1504f59 100644 --- a/openlrc/prompter.py +++ b/openlrc/prompter.py @@ -190,7 +190,7 @@ def __init__(self, src_lang, target_lang): self.src_lang_display = Language.get(src_lang).display_name('en') self.target_lang_display = Language.get(target_lang).display_name('en') - self.stop_sequence = '<*--END-OF-CONTEXT--*>' + self.stop_sequence = '<--END-OF-CONTEXT-->' def system(self): return f'''You are a context reviewer responsible for ensuring the consistency and accuracy of translations between two languages. Your task involves reviewing and providing necessary contextual information for translations.