Skip navigation
Anyone need some good news?
0:00 / 0:30

Anyone need some good news?

Samuel Colvin

@samuelcolvin21K followers

Visit on X
549 likesDownloadOriginal post

52,971 views

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 Comments

Comments from the original post on X (Twitter)

  • Samuel Colvin's profile picture

    @samuel_colvin

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

    23 likes

  • Jonas Vetterle's profile picture

    @jvetterle

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

    8 likes

  • TadasG | topyappers.com's profile picture

    @JustADude404

    @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

    4 likes

  • Samuel Colvin's profile picture

    @samuel_colvin

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

    9 likes

  • William Bakst's profile picture

    @WilliamBakst

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

    4 likes

  • Daniel Micallef's profile picture

    @micallef_daniel

    @pydantic @OpenAI Is the example open-sourced?

    3 likes

  • Samuel Colvin's profile picture

    @samuel_colvin

    @pydantic @OpenAI Not yet, will be soon.

    6 likes

  • Teknium (e/λ)'s profile picture

    @Teknium1

    @pydantic @OpenAI Why’s it so slow

    3 likes

  • Snehasish Barman's profile picture

    @racksyz

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

    2 likes

  • Omar MHAIMDAT's profile picture

    @omarmhaimdat

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

    1 like