Merge pull request #28 from send18/feature-zhanglei

update:修改get_summary,加上是否保持语言的配置,强调
This commit is contained in:
send18 2023-09-04 11:55:00 +08:00 committed by GitHub
commit 8860e36e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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