Skip to content

Fix Pydantic Deprecation warning #8087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged

Fix Pydantic Deprecation warning #8087

merged 1 commit into from
Apr 21, 2025

Conversation

Miyamura80
Copy link
Contributor

Currently, there is this deprecation warning message:

/opt/venv/lib/python3.12/site-packages/dspy/adapters/json_adapter.py:198: PydanticDeprecatedSince20: The `schema` method is deprecated; use `model_json_schema` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/

  schema = Model.schema()

Updated the file with the warning

@okhat okhat merged commit d7eaa66 into stanfordnlp:main Apr 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants