正在加载视频...
视频加载失败
Anyone need some good news? Pydantic validating streamed structured responses on the fly from OpenAI. (using pre-release Pydantic v2.10). There's something cooking in the Pydantic kitchen...
10 条评论

This is made possible by the new "allow partial" functionality added in @pydantic v2.10.

@pydantic @OpenAI llms and pydantic are like that chaotic friend and their super organised roommate 😂 a match made in heaven

@pydantic @OpenAI please please add other LLMs as well. From my personal experience @LeadsOnTrees Gemini is a lot better for parsing unstructured text into Pydantic models <3

@pydantic @OpenAI @LeadsOnTrees Gemini is already supported, although their JSON Schema support is much less sophisticated than @OpenAI.

@pydantic @OpenAI @jxnlco i feel like instructor and mirascope have had this functionality for quite a while now @samuel_colvin I’m curious to see what’s different here any timeline? guessing this will be the `pydantic-ai` package?

@pydantic @OpenAI Is the example open-sourced?

@pydantic @OpenAI Not yet, will be soon.

@pydantic @OpenAI Why’s it so slow

@pydantic @OpenAI Awesome work. Now I can remove some external dependencies.

@pydantic @OpenAI What are you guys cooking 🧑🍳?
