From b43cdb23f7921daf9ba4866746928e8d38bc55e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=A3=92=E6=A3=92?= Date: Tue, 26 Dec 2023 14:11:13 +0800 Subject: [PATCH] update make_tools. --- metagpt/roles/ml_engineer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/ml_engineer.py b/metagpt/roles/ml_engineer.py index cafd9b968..b991d9329 100644 --- a/metagpt/roles/ml_engineer.py +++ b/metagpt/roles/ml_engineer.py @@ -295,7 +295,7 @@ class MLEngineer(Role): # tool_code = await make_tools.run(code_prompt) tool_code = await make_tools.run(code) _, success = await self.execute_code.run(tool_code) - make_tool_retries += 1 + make_tool_current_retry += 1 if make_tool_current_retry > make_tool_retries: logger.error(f"We have tried the maximum number of attempts {make_tool_retries}\ and still have not created tools for task_id {self.plan.current_task_id} successfully,\