https://github.com/thiviyant/chat-gpt-python-api
https://github.com/thiviyant/chat-gpt-python-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiviyant/chat-gpt-python-api
- Owner: thiviyanT
- License: mit
- Created: 2023-03-29T07:51:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T12:46:38.000Z (about 2 years ago)
- Last Synced: 2025-02-05T12:43:47.077Z (4 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🤖 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`
2. 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"`
3. Edit the system instructions in `main.py` to alter the chat-bot's behaviour.
4. Run the script:
`python main.py`