Welcome to Tom’s Chatbot! This is a simple chatbot application that uses OpenAI’s GPT-3 model to generate responses.
- You have installed Node.js
- You have an OpenAI API key. Please note that usage of the OpenAI API is not free, and you will be billed according to their pricing details.
Clone the repository:
git clone https://github.com/gunmentoy/chatgpt-chatbot.git
cd chatgpt-chatbot
npm install
To configure Tom’s Chatbot, you need to set up your OpenAI API key:
- Create a .env file in the root directory of the project. Add the following line to the .env file:
OPENAI_API_KEY=<your_openai_api_key>
- Replace <your_openai_api_key> with your actual OpenAI API key.
To run Tom’s Chatbot, follow these steps:
- Start the application:
npm start
- You will be greeted by the chatbot. You can start chatting by typing your messages.
To stop the chatbot, type
exit.