pprados / langchain-googledrive

An external version of a pull request for langchain.
Apache License 2.0
26 stars 10 forks source link

Upgraded to langchain 0.3.x #14

Closed patcheng closed 4 weeks ago

patcheng commented 1 month ago

Description: Langchain 0.3.x upgraded pydantic from v1 to v2, so need to migrate this project's to use Pydantic v2.

I upgraded langchain packages to 0.3.x. They no longer supports Python 3.8, so upgraded that as well. Followed commit message https://github.com/langchain-ai/langchain/pull/26443 and followed the steps in https://github.com/eyurtsev/migrate-pydantic/tree/main?tab=readme-ov-file.

Fixed up various model so the tests passed.

Some noteable changes:

Ran make test and everything pass. Ran make lint and fixed errors related to the change, and some obvious errors. There are still some errors that might be existing? Ran make format

I tried to do each step as a separate commit. Hopefully makes it slightly easier to review.

pprados commented 1 month ago

Thanks!

To validate this PR, the make validate command must not return any errors. Can you fix the last points?

patcheng commented 1 month ago

ok. test, lint, format and validate are all passing.

pprados commented 4 weeks ago

Very good job !

pprados commented 4 weeks ago

The version v0.3.0 is published!