How to use the ChatGPT API with Python!!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
the tragic PT API was just recently released let's go and take a look at how it works with python the first thing that we need to do is import the open AI python library and set our API key the API key is available directly via your open AI account the next thing that we can go ahead and do is go and use the openai.chatcompletion.create method to be able to specify our model as well as passing through our prompt in my particular case I've gone and set the prompt to write me a script for hosting a conference on technology which is something I'm about to do we can then go and print our output and let's go and run this and see what we get back and take a look we have our entire script now generated that's going to save me a bunch of time for that conference coming up code is in the description below I'll catch you later guys what do you think have you gone and checked it out yet let me know in the comments below what are you creating
Info
Channel: Nicholas Renotte
Views: 194,062
Rating: undefined out of 5
Keywords:
Id: ZkFKF-ohsKk
Channel Id: undefined
Length: 0min 49sec (49 seconds)
Published: Mon Mar 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.