1 00:00:02,320 --> 00:00:02,880 Hi guys. 2 00:00:02,920 --> 00:00:03,840 Welcome to this session. 3 00:00:03,840 --> 00:00:09,000 So in this session we'll see how we start the first conversation uh using the API. 4 00:00:10,520 --> 00:00:13,080 So you're going to start off with the first conversation using the API. 5 00:00:13,080 --> 00:00:19,880 So we can start with instantiate the API client with client OpenAI okay. 6 00:00:19,920 --> 00:00:25,800 Completion client chat competitive competitions create is the main command which we give okay. 7 00:00:25,840 --> 00:00:28,440 Then we define the model which we are going to use. 8 00:00:28,440 --> 00:00:31,080 So let's say GPT 3.5 turbo. 9 00:00:31,400 --> 00:00:33,800 And then the messages here we input our prompts. 10 00:00:33,800 --> 00:00:35,360 We give our prompts over here. 11 00:00:35,640 --> 00:00:37,920 And then we define the role as well. 12 00:00:37,960 --> 00:00:42,640 User content let's say hello chat as we were in ChatGPT. 13 00:00:43,040 --> 00:00:48,360 Once you do this then we give the print function which is for completion choices, messages and content. 14 00:00:48,760 --> 00:00:52,000 And then we get the final message. 15 00:00:52,280 --> 00:00:59,080 So this is how you're going to start off with the initial conversation using the API on the platforms.