In today's tutorial, we're going to look at a feature that was released on OpenAI's first-ever DevDay, which is how to get an OpenAI API response in JSON format. I'll show you an example in both Python and Node.js.
⭐ Code ⭐
⦁ GitHub repository: https://github.com/rokbenko/ai-playgr...
⦁ Code for this tutorial: https://github.com/rokbenko/ai-playgr...
🙌 Support 🙌
⦁ Subscribe: / @rokbenko
⦁ Keep tutorials brewing: https://buymeacoffee.com/rokbenko
🌐 Profiles 🌐
⦁ GitHub: https://github.com/rokbenko
⦁ LinkedIn: / rokbenko
⦁ X: https://x.com/rokbenko
🎞️ Timestamps 🎞️
00:00 – Intro
00:14 – Code for this tutorial
00:28 – OpenAI DevDay announcement
00:42 – SDK update
00:57 – Python and Node.js examples
02:10 – Check if the response is a valid JSON
02:23 – Run Python and Node.js examples
03:01 – Outro
#AI #OpenAI