update:修改get_summary,加上是否保持语言的配置,强调

This commit is contained in:
zhanglei 2023-09-04 11:50:22 +08:00
parent d4878f23a0
commit 9cc85d631a

View file

@ -248,7 +248,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
if len(text) < max_words:
return text
if keep_language:
command = f".Translate the above content into a summary of less than {max_words} words in language of the content."
command = f".Translate the above content into a summary of less than {max_words} words in language of the content strictly."
else:
command = f"Translate the above content into a summary of less than {max_words} words."
msg = text + "\n\n" + command