A simple chat application using OpenAI's GPT-3.5 Turbo for natural language processing. This project was created with a boiler plate with [npx create-react-app react-chatgpt).
This project is a chat application built with React on the frontend and a Node.js server on the backend. It leverages OpenAI's GPT-3.5 Turbo to provide conversational responses based on user input.
- Dynamic Chat History: Keep track of your conversations with the chat history displayed on the sidebar.
- User-Friendly Interface: Intuitive and easy-to-use interface for a seamless chatting experience.
- GPT-3.5 Turbo Integration: Leverage the power of OpenAI's GPT-3.5 Turbo for generating natural and context-aware responses.
- Node.js installed
- React installed
- OpenAI API key (Sign up at OpenAI to get your API key)
- Your own API_KEY is avalaible in https://platform.openai.com/account/api-keys
- Clone the repository:
git clone https://github.com/your-username/chatgpt-clone.git
- Navigate to the server directory:
cd chatgpt-clone/server
- Install dependencies:
npm install
- Create a .env file in the server directory and add your OpenAI API key:
API_KEY=your-openai-api-key
- Start the server:
npm run start:backend
The server will run on http://localhost:8000.
- Navigate to the client directory:
cd chatgpt-clone/
- Install dependencies:
npm install
- Start the React app:
npm run start:frontend
- Visit http://localhost:3000 in your browser.
- Interact with the chat application by creating new chats, selecting previous chats, and exploring the dynamic chat history.
You need to have payment plan to avoid:
error: "You exceeded your current quota, please check your plan and billing details."
Also there is a list of toDo in App.js If you encounter any more issues or have suggestions for improvement, feel free to open an issue or create a pull request.
❤️❤️❤️