THE CHAT GPT

INTRODUCTION TO CHAT GPT

INTRODUCTION TO OPENAI AND CHATGPT In this article we are going to explore the ChatGPT API. Let's start by talking about OpenAI an American nonprofit research lab that focuses on developing and promoting artificial intelligence. In 2019 OpenAI created a limited partnership (LP) company. One of the investors is Microsoft, which provided $1 billion for a strategic partnership agreement. OpenAI develops a whole range of applications, the one we will consider is ChatGPT, which simulates conversation between a virtual user and a human user. We will use OpenAI API (application program interface). These APIs are services that allow us [...]

By |2023-10-20T11:55:52+00:00October 19, 2023|0 Comments

CHAT GPT CONVERSATIONS

THE CHATCOMPLETION CLASS The openai.Completion class used in the previous post was designed to generate text in response to a prompt. However, such a class does not take into account the context of the conversation. This is where the ChatCompletion class comes in. designed to maintain the history of the conversation. The ChatCompletion API allows for the simulation of a conversation between a human user and a virtual assistant that remembers the dialogue as it takes place in order to create a context of the conversation. With your favorite editor, create a script named test_api_chat1.py. I bring you the [...]

By |2023-10-20T12:02:22+00:00October 20, 2023|0 Comments
Go to Top