Loading video...

Video Failed to Load

Go Home

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...

52,971 views • 1 year ago •via X (Twitter)

10 Comments

Samuel Colvin's profile picture
Samuel Colvin1 year ago

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

Jonas Vetterle's profile picture
Jonas Vetterle1 year ago

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

TadasG | topyappers.com's profile picture
TadasG | topyappers.com1 year ago

@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

Samuel Colvin's profile picture
Samuel Colvin1 year ago

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

William Bakst's profile picture
William Bakst1 year ago

@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?

Daniel Micallef's profile picture
Daniel Micallef1 year ago

@pydantic @OpenAI Is the example open-sourced?

Samuel Colvin's profile picture
Samuel Colvin1 year ago

@pydantic @OpenAI Not yet, will be soon.

Teknium (e/λ)'s profile picture
Teknium (e/λ)1 year ago

@pydantic @OpenAI Why’s it so slow

Snehasish Barman's profile picture
Snehasish Barman1 year ago

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

Omar MHAIMDAT's profile picture
Omar MHAIMDAT1 year ago

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

Related Videos