AWorld icon indicating copy to clipboard operation
AWorld copied to clipboard

'AgentConfig' object has no attribute 'llm_model_name'-gaia-reasoning-mcp

Open letsgetai opened this issue 1 year ago • 3 comments

Image

这里有一个bug

letsgetai avatar Sep 04 '25 13:09 letsgetai

root@839fd2e04390 /w/AWorld (main)# python examples/gaia/mcp_collections/intelligence/think.py                                                                                                           (aworld-gaia) 
An error occurred: 'AgentConfig' object has no attribute 'llm_model_name': Traceback (most recent call last):
  File "/workspace/AWorld/examples/gaia/mcp_collections/intelligence/think.py", line 234, in <module>
    service = ThinkCollection(args)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/AWorld/examples/gaia/mcp_collections/intelligence/think.py", line 40, in __init__
    self._color_log(f"Using model: {self._llm_config.llm_model_name}", Color.blue, "debug")
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/aworld-gaia/lib/python3.12/site-packages/pydantic/main.py", line 991, in __getattr__
    raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'AgentConfig' object has no attribute 'llm_model_name'

AgentConfig似乎初始化已经不带这个llm_model_name这个属性了,这个属性在ModelConfig里面,请问这里是没有修改嘛

letsgetai avatar Sep 04 '25 13:09 letsgetai

mcp 文件路径:examples/gaia/mcp_collections/intelligence/think.py

letsgetai avatar Sep 04 '25 13:09 letsgetai

You're absolutely right.

The ModelConfig encapsulates the llm config attributes (which are originally duplicated in AgentConfig) in a major update, but the accessors haven't been handled properly.

Thanks for pointing out the broken pieces!

qingw-dev avatar Sep 05 '25 01:09 qingw-dev