An open API service indexing awesome lists of open source software.

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

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
```