MetaGPT
MetaGPT copied to clipboard
Errors for PRD when using gpt-3.5 api please help
I am constantly trying to make it work but keeps on getting error like this type File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 5 validation errors for prd Requirement Pool -> 0 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 1 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 2 value is not a valid tuple (type=type_error.tuple) Requi…
Make sure you the python version is 3.9.x and install the exactly version of dependencies in requirements.txt
I got the same error. 2023-08-31 14:39:24.792 | INFO | metagpt.provider.openai_api:update_cost:81 - Total running cost: $0.012 | Max budget: $3.000 | Current cost: $0.005, prompt_tokens: 844, completion_tokens: 727 Traceback (most recent call last): File "D:\Anaconda3\envs\Agent\lib\site-packages\tenacity_asyncio.py", line 50, in call result = await fn(*args, **kwargs) File "D:\share\MetaGPT\metagpt\metagpt\actions\action.py", line 62, in _aask_v1 instruct_content = output_class(**parsed_data) File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 5 validation errors for prd Requirement Pool -> 0 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 1 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 2 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 3 value is not a valid tuple (type=type_error.tuple) Anything UNCLEAR field required (type=value_error.missing)
same here: 2023-09-08 22:18:19.308 | INFO | metagpt.provider.openai_api:update_cost:79 - Total running cost: $0.013 | Max budget: $3.000 | Current cost: $0.007, prompt_tokens: 914, completion_tokens: 963 Traceback (most recent call last): File "C:\Python311\Lib\site-packages\tenacity-8.2.2-py3.11.egg\tenacity_asyncio.py", line 50, in call result = await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Development\workspace\metagpt\metagpt\metagpt\actions\action.py", line 62, in _aask_v1 instruct_content = output_class(**parsed_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pydantic-1.10.8-py3.11.egg\pydantic\main.py", line 341, in init raise validation_error pydantic.error_wrappers.ValidationError: 6 validation errors for prd Requirement Pool -> 0 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 1 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 2 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 3 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 4 value is not a valid tuple (type=type_error.tuple) Anything UNCLEAR field required (type=value_error.missing)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Development\workspace\metagpt\metagpt\startup.py", line 68, in
I am having the same issue while running the docker container.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/tenacity/_asyncio.py", line 50, in call result = await fn(*args, **kwargs) File "/app/metagpt/metagpt/actions/action.py", line 62, in _aask_v1 instruct_content = output_class(**parsed_data) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 5 validation errors for prd Requirement Pool -> 0 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 1 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 2 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 3 value is not a valid tuple (type=type_error.tuple) Requirement Pool -> 4 value is not a valid tuple (type=type_error.tuple)
The above exception was the direct cause of the following exception:
@better629 pls guide, got the same error
(metagpt1) maryam_linux@Maryam:/mnt/c/Users/Hp/Downloads/metagptv1/MetaGPT-0.1.0$ python startup.py "write a cli snake game" --investment=10 2024-01-09 07:48:46.594 | INFO | metagpt.config:init:43 - Config loading done. 2024-01-09 07:48:47.316 | INFO | metagpt.software_company:invest:39 - Investment: $10. 2024-01-09 07:48:47.318 | INFO | metagpt.roles.role:_act:155 - Alice(Product Manager): ready to WritePRD 2024-01-09 07:48:47.318 | WARNING | metagpt.actions.search_and_summarize:run:114 - Configure SERPAPI_API_KEY to unlock full feature
2024-01-09 07:48:47.683 | INFO | metagpt.provider.openai_api:update_cost:89 - Total running cost: $0.048 | Max budget: $10.000 | Current cost: $0.048, prompt_tokens=798, completion_tokens=0
2024-01-09 07:48:48.790 | INFO | metagpt.provider.openai_api:update_cost:89 - Total running cost: $0.096 | Max budget: $10.000 | Current cost: $0.048, prompt_tokens=798, completion_tokens=0 Traceback (most recent call last): File "/home/maryam_linux/miniconda3/envs/metagpt1/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call result = await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/c/Users/Hp/Downloads/metagptv1/MetaGPT-0.1.0/metagpt/actions/action.py", line 60, in _aask_v1 instruct_content = output_class(**parsed_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 8 validation errors for prd Original Requirements field required (type=value_error.missing) Product Goals field required (type=value_error.missing) User Stories field required (type=value_error.missing) Competitive Analysis field required (type=value_error.missing) Competitive Quadrant Chart field required (type=value_error.missing) Requirement Analysis field required (type=value_error.missing) Requirement Pool field required (type=value_error.missing) Anything UNCLEAR field required (type=value_error.missing)
@MARYAMJAHANIR we have make a big version update, can you try the latest one from pypi or the repo's tag. The reason above is usually the llm can't follow the instruction to generate required keys/values, maybe you can have a re-run. If there still has problem, you can upload the log, it's more detail.