🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: think
莘权 马e25e19eb8fe6
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex 7139c4946..949b252b2 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -277,7 +277,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):async def is_related(self, text1, text2):# command = f"{text1}\n{text2}\n\nIf the two sentences above are related, return [TRUE] brief and clear. Otherwise, return [FALSE]."- command = f"{text2}\n\nIs there any sentence above related to the following sentence: {text1}.\nIf is there any relevance, return [TRUE] brief and clear. Otherwise, return [FALSE]."+ command = f"{text2}\n\nIs there any sentence above related to the following sentence: {text1}.\nIf is there any relevance, return [TRUE] brief and clear. Otherwise, return [FALSE] brief and clear."rsp = await self.aask(msg=command, system_msgs=[])result, _ = self.extract_info(rsp)return result == "TRUE"