Welcome to the Chat Bot project using GPT 3.5! This repository contains a server and a client, with the server connecting to the OpenAI API and the client being a React-based chat application.
Please Note: The demo link is no longer functioning, as the OpenAI API is now a paid service. You can use this project by cloning the repository and connecting it to your personal API key.
- React
- Tailwind CSS
This repository is organized into two main folders:
-
Server: This folder contains the server-side code. The server is responsible for connecting to the OpenAI API and handling API requests.
-
Client: This folder contains the client-side code. It's a React-based chat application that allows you to interact with the chat bot.
To get started with this project, follow these steps:
-
Clone this repository to your local machine.
-
Navigate to the
server
folder and set up your OpenAI API key.Create a
.env
file in theserver
folder and add your OpenAI API key like this:OPENAI_API_KEY=your-api-key-here
-
Install dependencies for the server and client. You can do this by running the following commands in their respective folders:
For the server:
cd server npm install
For the client:
cd client npm install
-
Start the server and client separately. In the
server
folder, run:npm start
In the
client
folder, run:npm start
-
Visit
http://localhost:3000
in your browser to use the chat bot application.
You can use the chat bot application to send queries and receive answers. The client communicates with the server, which in turn sends requests to the OpenAI API to fetch responses.
Make sure your OpenAI API key is correctly set up in the server
folder's .env
file.
This project is licensed under the MIT License.
Happy Chatting with GPT 3.5!