Skip to content

Commit

Permalink
Improve the stop_sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-plus committed Jun 26, 2024
1 parent 7ba85c0 commit c7336e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlrc/prompter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c7336e4

Please sign in to comment.