Skip to content
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

community: changing the .dict() to .model_dump() since it is deprecated #15489

Closed

Conversation

henriquevedoveli
Copy link

  • Description: The method .dict() was replaced by .model_dump since its deprecated in Pydantic V2 and will be removed in Pydantic V.3,
  • Issue: None,
  • Dependencies: None,
  • Twitter handle: @hhvedoveli

Copy link

vercel bot commented Jan 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jan 3, 2024 5:09pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. Ɑ: embeddings Related to text embedding models module 🤖:improvement Medium size change to existing code to handle new use-cases labels Jan 3, 2024
@hwchase17
Copy link
Contributor

does this still work for pydantic v1?
we've also split out openai into its own package - langchain_openai. the code in community is deprecated and left around because some classes depend on it. can we update this pr to make this change in the langchain_openai package

@hwchase17
Copy link
Contributor

closing, should be reopened against langchain-openai package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: embeddings Related to text embedding models module 🤖:improvement Medium size change to existing code to handle new use-cases size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants