Hi guys.
Welcome to this session.
So in this session we'll see how we start the first conversation uh using the API.
So you're going to start off with the first conversation using the API.
So we can start with instantiate the API client with client OpenAI okay.
Completion client chat competitive competitions create is the main command which we give okay.
Then we define the model which we are going to use.
So let's say GPT 3.5 turbo.
And then the messages here we input our prompts.
We give our prompts over here.
And then we define the role as well.
User content let's say hello chat as we were in ChatGPT.
Once you do this then we give the print function which is for completion choices, messages and content.
And then we get the final message.
So this is how you're going to start off with the initial conversation using the API on the platforms.