mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
fix: module not found.
This commit is contained in:
parent
0843a82a1b
commit
4760dfd13b
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class MLEngineer(Role):
|
|||
# ask for acceptance, users can other refuse and change tasks in the plan
|
||||
task_result_confirmed = await self._ask_review()
|
||||
|
||||
if success and task_result_confirmed and not code.startswith("!pip"):
|
||||
if success and task_result_confirmed:
|
||||
# tick off this task and record progress
|
||||
task.code = code
|
||||
task.result = result
|
||||
|
|
@ -126,6 +126,8 @@ class MLEngineer(Role):
|
|||
# print(result)
|
||||
self.working_memory.add(Message(content=result, role="user", cause_by=ExecutePyCode))
|
||||
|
||||
if code.startswith("!pip"):
|
||||
success = False
|
||||
# if not success:
|
||||
# await self._ask_review()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue