Interesting. I was trying to figure out how to get some structured responses to my Chat GPT requests. This json format, and Json example approach looks very useful way to coerce the responses into a useful syntax for my overall NPC adventure application. Many Thanks
oh damn, I have a business idea for e-commerce website where automate customers purchase with the help of an AI assistant. This JSON stuff is exactly what I need to implement the idea. Thank you so much. Keep up your amazing work ❤
@@TomsTechAcademy so which approaches do you advise (response_format param vs function calling)? is this one outdated or better suited for certain events/data?
Man, there are f-strings in python and they are awesome. Please use them instead of string concatenation - this way there is no need to manually convert integers to strings
Dude, abstracting the schema is a genius move. Thanks for the advice!
Thank you for your comment Max, glad my tutorial was useful for you! 😀
Interesting. I was trying to figure out how to get some structured responses to my Chat GPT requests. This json format, and Json example approach looks very useful way to coerce the responses into a useful syntax for my overall NPC adventure application. Many Thanks
Thank you for your comment Jules, glad I could be of help. Good luck with your application 🚀
thannks man youre a great help for a 2 day long issue, thanks again very much appreciated.
Thank you for your comment, glad to hear my video has helped you 😀
oh damn, I have a business idea for e-commerce website where automate customers purchase with the help of an AI assistant. This JSON stuff is exactly what I need to implement the idea. Thank you so much. Keep up your amazing work ❤
Glad my video was helpful for you :) good luck with the start of your new e-commerce business 🚀
thanks this provided me the code snippet i was looking for when Chat GPT 4 wasn't familiar with the latest updates past > v0.0.28
Thank you for your reply, glad my video was helpful for you 😀
man its awesome!! thanks a lot for sharing with us
Thank you for your kind words, happy coding!
I believe you can use function calling to force the response to be a certain JSON structure. Have you looked into / tried this? Thanks
I just uploaded another video on using function calling in order to enforce structured data with Chat-GPT:
th-cam.com/video/kWo3iPDsVWU/w-d-xo.html
@@TomsTechAcademy so which approaches do you advise (response_format param vs function calling)? is this one outdated or better suited for certain events/data?
response_format is not reliable. I resorted to using a package on github to just fix the json. I don't expect it to be 100%, but it will help.
thank you
Thank you for your comment Tshay! What else would you like to see a video about? 😀
Man, there are f-strings in python and they are awesome. Please use them instead of string concatenation - this way there is no need to manually convert integers to strings
Thanks for your feedback, greatly appreciated 😊! Will definitely use them in the next videos.
mad to not just use an env file?
Thanks for the suggestion, I’m using .env files in some of my other videos, e.g: th-cam.com/video/kWo3iPDsVWU/w-d-xo.html
Great content! your website is down :(
Thanks, yes - I'm working hard to get it back online. Reach me via Discord in case you need any of the resources hosted there :) discord.gg/a4qUrRuZ