Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置deepseek的api之后,metagpt重复在think,但无法执行action动作 #1708

Open
zhulf11 opened this issue Feb 21, 2025 · 0 comments

Comments

@zhulf11
Copy link

zhulf11 commented Feb 21, 2025

2025-02-21 10:06:54.840 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 231.734(s), this was the 6th time calling it. exp: 1 validation error for WritePRD_AN
Value error, Missing fields: {'UI Design draft', 'Anything UNCLEAR'} [type=value_error, input_value={'Language': 'zh_cn', 'Pr...示': '屏幕底部'}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
2025-02-21 10:06:54.842 | WARNING | metagpt.utils.common:wrapper:673 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory.
2025-02-21 10:06:54.855 | ERROR | metagpt.utils.common:wrapper:655 - Exception occurs, start to serialize the project, exp:
Traceback (most recent call last):
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\tenacity_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\action_node.py", line 449, in _aask_v1
instruct_content = output_class(**parsed_data)
pydantic_core._pydantic_core.ValidationError: 1 validation error for WritePRD_AN
Value error, Missing fields: {'UI Design draft', 'Anything UNCLEAR'} [type=value_error, input_value={'Language': 'zh_cn', 'Pr...示': '屏幕底部'}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/value_error

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 664, in wrapper
return await func(self, *args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 551, in run
rsp = await self.react()
tenacity.RetryError: RetryError[<Future at 0x1b156176a60 state=finished raised ValidationError>]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 650, in wrapper
result = await func(self, *args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\team.py", line 134, in run
await self.env.run()
Exception: Traceback (most recent call last):
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\tenacity_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\action_node.py", line 449, in _aask_v1
instruct_content = output_class(**parsed_data)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\pydantic\main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for WritePRD_AN
Value error, Missing fields: {'UI Design draft', 'Anything UNCLEAR'} [type=value_error, input_value={'Language': 'zh_cn', 'Pr...示': '屏幕底部'}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/value_error

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 664, in wrapper
return await func(self, *args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 551, in run
rsp = await self.react()
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 520, in react
rsp = await self._react()
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 475, in _react
rsp = await self._act()
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 404, in _act
response = await self.rc.todo.run(self.rc.history)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\write_prd.py", line 87, in run
return await self._handle_new_requirement(req)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\write_prd.py", line 108, in _handle_new_requirement
node = await WRITE_PRD_NODE.fill(context=context, llm=self.llm, exclude=exclude) # schema=schema
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\action_node.py", line 648, in fill
return await self.simple_fill(schema=schema, mode=mode, images=images, timeout=timeout, exclude=exclude)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\metagpt\actions\action_node.py", line 473, in simple_fill
content, scontent = await self.aask_v1(
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\tenacity_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\tenacity_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
File "C:\Users\USERl.conda\envs\metagpt\lib\site-packages\tenacity_init
.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x1b156176a60 state=finished raised ValidationError>]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant