Skip to content

thiviyanT/chat-gpt-python-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Chat-GPT Python API

A simple script to get started with the OpenAI API to use the Chat-GPT model.

Here are the simple steps to get started:

  1. Download the OpenAI API:

pip install openai

  1. Obtain your OpenAI API key from https://platform.openai.com/account/api-keys and set it as an environment variable:

export OPENAI_API_KEY = "your_openai_api_key"

  1. Edit the system instructions in main.py to alter the chat-bot's behaviour.

  2. Run the script:

python main.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages