om-ai-lab / OmAgent

A multimodal agent framework for solving complex tasks
Apache License 2.0
439 stars 27 forks source link

pydantic stops video_understanding task #5

Closed brianliu2 closed 1 month ago

brianliu2 commented 1 month ago

my pydantic version is 2.2, and when run the video_understanding task, it shows the warning and terminates the run.

UserWarning: Field "model_id" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
[1]    63213 illegal hardware instruction  python run.py

I can see solutions such as from pydantic import ConfigDict is added in omagent_core/llm/gpt.py and

class Config:

        protected_namespaces = ()
        extra = "allow"

is added in omagent_core/llm/openai_gpt.py.

But it doesn't resolve the issue.

panregedit commented 1 month ago

It is caused by the OVD tool in 'engine/tools/ovd_tool.py'. I fixed it in the most recent commit.