eyurtsev / kor

LLM(😽)
https://eyurtsev.github.io/kor/
MIT License
1.6k stars 88 forks source link

Change serialization and add support for pydantic v2 #232

Open eyurtsev opened 11 months ago

eyurtsev commented 11 months ago

Change serialization

eyurtsev commented 11 months ago

Hi @BorisWilhelms! I wanted to run this change by you. Adding support for serialization for pydantic v2. it's a breaking change so will release under version 3

eyurtsev commented 11 months ago

https://github.com/eyurtsev/kor/issues/228

IvanShah commented 4 months ago

Hi, @eyurtsev we are using Kor and Langchain in our project but forced to use pydantic v1. Could you please tell if there will be support for the second version?

eyurtsev commented 4 months ago

Hi @IvanShah, kor supports pydantic 2.

This PR was making serialization work with pydantic 2. Are you relying on serialization? If so, I can make an rc release and you're welcome to test this out.