mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
Merge pull request #28 from send18/feature-zhanglei
update:修改get_summary,加上是否保持语言的配置,强调
This commit is contained in:
commit
8860e36e6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue