MetaGPT
MetaGPT copied to clipboard
the Bug source:python examples/di/imitate_webpage.py is Incomplete, shutdown error info
Bug description
-
LLM type and model name:
-
openai
-
model: "gpt-4-1106-preview"
-
Python 3.10:
-
packages version:
-
MetaGPT 0.76
Screenshots or code logs `File "/home/miniconda3/envs/metaGpt/lib/python3.11/site-packages/metagpt/roles/di/data_interpreter.py", line 46, in _act_on_task code, result, is_success = await self._write_and_exec_code() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/miniconda3/envs/metaGpt/lib/python3.11/site-packages/metagpt/roles/di/data_interpreter.py", line 58, in _write_and_exec_code self.working_memory.add(Message(content=code["code"], role="assistant", cause_by=cause_by)) ~~~~^^^^^^^^ KeyError: 'code'
During handling of the above exception, another exception occurred:`
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/MetaGPT/examples/di/imitate_webpage.py", line 25, in
(metaGpt) root@xjspace:/data/MetaGPT# [IPKernelApp] WARNING | Parent appears to have exited, shutting down.
Previous version of code variable is a dict, but it is changed to a string and properly handled. Try pulling the latest codes and this issue should be fixed.
Previous version of
codevariable is a dict, but it is changed to a string and properly handled. Try pulling the latest codes and this issue should be fixed. I'll give it a try
@xjspace Can you confirm that this issue has been resolved?