Pydantic value error in the latest version

I had similar issues, adding this to the project.toml file fixed it for me:
pydantic = “>=2.4.2,<3.0.0”

Let me know if it’s a fix.

Thank you for your reply! However, that’s not the reason, the latest version has already resolved my issue.