pandas-ai icon indicating copy to clipboard operation
pandas-ai copied to clipboard

[FEATURE] Support Pydantic 2.0

Open KevinZhang19870314 opened this issue 1 year ago • 2 comments

🚀 The feature

pydantic v2 got released. However, pandasai has a pydantic<2.0 constraint: https://github.com/gventuri/pandas-ai/blob/f145da97855a099958b8a7edf2945dcb59c47bf2/pyproject.toml#L18

Motivation, pitch

I would like to be able to use pydantic v2. Can we build the support for pydantic v2?

Alternatives

No response

Additional context

No response

KevinZhang19870314 avatar Feb 02 '24 07:02 KevinZhang19870314

Pydantic 2 has been available for over 6 months. Is there a reason to fix the version to 1? Would it be OK to accept a PR to relax this restriction @gventuri ?

alangrafu avatar Feb 13 '24 16:02 alangrafu

I second this. The latest versions of Gradio (https://github.com/gradio-app/gradio) require pydantic >= 2.0.

ScarlettZebra avatar Feb 23 '24 18:02 ScarlettZebra