From cad38e914be9f20e20c03c01a3e6e00fe7a1ad23 Mon Sep 17 00:00:00 2001 From: bookfere Date: Mon, 22 Apr 2024 15:35:25 +0800 Subject: [PATCH] fix: Revised prompt for Gemini Pro to reserve Quotation Marks. fixed #287 --- engines/google.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/google.py b/engines/google.py index d0ba817..4c83dfa 100644 --- a/engines/google.py +++ b/engines/google.py @@ -251,8 +251,9 @@ class GeminiPro(Base): prompt = ( 'You are a meticulous translator who translates any given content ' - 'from to only. Do not explain any term, and do not ' - 'answer any question.') + 'from to 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