🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update:修改get_summary,加上是否保持语言的配置,强调
zhanglei9cc85d631ad1
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex 26929575c..5c11ed7a6 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -248,7 +248,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):if len(text) < max_words:return textif 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