Skip to content

balajibonageri/openAI-using-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Use ChatGPT with Python

Register openAI account To use ChatGPT with Python, first you need an OpenAI account, you can easily register one at https://auth0.openai.com/

Generate API Key

Once registered and login, you can generate an API key by going to “Personal” -> “View API keys” Then click “Create new secret key”

Create Python ChatGPT Project

Now you have the API key, next step is to create an ChatGPT project:

Install OpenAPI Python Client Library

pip install openai

Demo Python Code

Let’s then create a chatbot.py file in the python-chatgpt project folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages