https://github.com/fahimfba/gpt-chatbot
simple chatbot CLI using GPT 3.5-turbo
https://github.com/fahimfba/gpt-chatbot
openai openai-api openai-chatgpt python python-script python3
Last synced: about 1 month ago
JSON representation
simple chatbot CLI using GPT 3.5-turbo
- Host: GitHub
- URL: https://github.com/fahimfba/gpt-chatbot
- Owner: FahimFBA
- Created: 2023-10-09T17:44:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T17:59:22.000Z (over 2 years ago)
- Last Synced: 2025-10-03T20:03:10.098Z (9 months ago)
- Topics: openai, openai-api, openai-chatgpt, python, python-script, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gpt-chatbot
simple chatbot CLI using GPT 3.5-turbo
> [!NOTE]
> This requires the paid plan of ChatGPT for accessing the API call.
## Install `openai` module
For Linux:
```bash
pip3 install openai
```
For Windows:
```bash
pip install openai
```
## Get the API key
Go to [OpenAI](https://platform.openai.com/account/api-keys) and create a new **API keys**. Then copy your secret key.
## Running the chatbot
For Linux:
```bash
python3 chatbot.py
```
For Windows:
```bash
python chatbot.py
```