Link-AGI / AutoAgents

[IJCAI 2024] Generate different roles for GPTs to form a collaborative entity for complex tasks.
https://huggingface.co/spaces/LinkSoul/AutoAgents
MIT License
1.2k stars 147 forks source link

ImportError: cannot import name 'ModelField' from 'pydantic.fields' #52

Open michaelzhouy opened 5 months ago

michaelzhouy commented 5 months ago

File "/data_local/02-hw/AutoAgents/autoagents/actions/action/init.py", line 1, in from .action import Action File "/data_local/02-hw/AutoAgents/autoagents/actions/action/action.py", line 14, in from autoagents.system.llm import LLM File "/data_local/02-hw/AutoAgents/autoagents/system/llm.py", line 7, in from .provider.anthropic_api import Claude2 as Claude File "/data_local/02-hw/AutoAgents/autoagents/system/provider/anthropic_api.py", line 10, in import anthropic File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/init.py", line 3, in from . import types File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/types/init.py", line 5, in from .completion import Completion as Completion File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/types/completion.py", line 3, in from .._models import BaseModel File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/_models.py", line 11, in from pydantic.fields import ModelField ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/pydantic/fields.py)