From ada3c1554ce58623a00320d0a57934a79a864467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Sun, 7 Apr 2024 13:29:07 +0800 Subject: [PATCH] fixbug: type error --- metagpt/roles/di/mgx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/di/mgx.py b/metagpt/roles/di/mgx.py index 0034dfe93..1002a559c 100644 --- a/metagpt/roles/di/mgx.py +++ b/metagpt/roles/di/mgx.py @@ -14,7 +14,7 @@ class MGX(DataInterpreter): use_intent: bool = True intents: Dict = {} - async def _detect_intent(self, user_msg: Message, **kwargs): + async def _detect_intent(self, user_msg: Message): todo = DetectIntent(context=self.context) request_with_sop, sop_type = await todo.run(user_msg) logger.info(f"{sop_type} {request_with_sop}")