A python code that is Equivalent to chat GPT using openai library of python
We need openai library to use ChatGPT with Python, run the following command in terminal: pip install openai
Steps to get your own API key
1.The OpenAI website can be accessed at 👉 https://openai.com/ Click On API
2.Sign Up or login into the site(if you have used chatGPT before then you can go for login else register your self into the site using signUp)
3.After the step 2 the following 👇 window would appear
4.Generation of API key : Click on the geneate API ket button,after the key is generated, you can copy the key and paste it in the code