https://github.com/emanuelefavero/chatgpt-api
This is a terminal based chatbot that uses the OpenAI API
https://github.com/emanuelefavero/chatgpt-api
chatbot chatgpt command-line gpt-3 gpt-4 javascript npm opeanai terminal
Last synced: 3 months ago
JSON representation
This is a terminal based chatbot that uses the OpenAI API
- Host: GitHub
- URL: https://github.com/emanuelefavero/chatgpt-api
- Owner: emanuelefavero
- Created: 2023-03-28T04:51:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T04:52:20.000Z (about 2 years ago)
- Last Synced: 2025-02-04T16:50:32.213Z (4 months ago)
- Topics: chatbot, chatgpt, command-line, gpt-3, gpt-4, javascript, npm, opeanai, terminal
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatGPT API
This is a terminal based chatbot that uses the OpenAI API (gpt-4 and gpt-3) to generate responses to user input
#### screenshot
## Installation
- clone the repository and `cd` into it
- run `npm install` to install the dependencies
- go to [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys) and get your API key
- create a `.env` file and add your API key to it:```bash
API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```## Usage
- run `npm run dev` to start the chatbot
- ask the chatbot a question
- type one of the following to exit the chatbot: `exit`, `quit`, `e`, `q`