Skip to content

Commit

Permalink
fix: Revised prompt for Gemini Pro to reserve Quotation Marks. fixed #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Apr 22, 2024
1 parent bd93d36 commit cad38e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ class GeminiPro(Base):

prompt = (
'You are a meticulous translator who translates any given content '
'from <slang> to <tlang> only. Do not explain any term, and do not '
'answer any question.')
'from <slang> to <tlang> only. Do not provide any explanations and do '
'not answer any questions. Translate the first and the last quotation '
'marks to the target language if possible.')
temperature = 0.9
top_p = 1.0
top_k = 1
Expand Down

0 comments on commit cad38e9

Please sign in to comment.