Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Validating OpenAI's new function call with Pydantic in 50 lines of code (medium.com/jxnlco)
7 points by jxnlco on June 15, 2023 | hide | past | favorite | 1 comment


I mostly wrote this to be as minimally invasive as possible and no require installation (just copy paste the code)

The blog and code is here: https://github.com/jxnl/openai_function_call

based on a thread of notes i took yesterday: https://twitter.com/jxnlco/status/1668819081187983360

I plan to add some examples in the future on how to be creative with pydantic and also how to get better performance out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: