cohere-python icon indicating copy to clipboard operation
cohere-python copied to clipboard

cohere, Pydantic v1 3.14 error

Open Natim opened this issue 2 months ago • 1 comments

SDK Version (required) 5.20.0

Describe the bug When running cohere, we receive this warning:

.venv/lib/python3.14/site-packages/cohere/core/pydantic_utilities.py:13: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
  from pydantic.v1.datetime_parse import parse_date as parse_date

Screenshots Apparently no need for parse_date anymore with Pydantic v2.

Natim avatar Oct 27 '25 15:10 Natim

The culprit comes from this code: https://github.com/cohere-ai/cohere-python/blob/main/src/cohere/core/pydantic_utilities.py#L12-L20

Natim avatar Oct 27 '25 15:10 Natim