This project is an AI chat application that leverages the power of Generative AI using OpenAI's GPT-3.5 model. The application allows users to have interactive conversations with the AI model, generating responses based on user inputs.
- React.js
- Node.js
- JavaScript
- OpenAI API
To run this application locally, follow these steps:
-
Clone the repository to your local machine.
-
Navigate to the project directory.
-
Install the dependencies by running the following command:
npm install
-
Create a
.env
file in the root directory of the project. -
Obtain an API key from the OpenAI website by following these steps:
-
Visit the OpenAI website at https://openai.com/.
-
Sign in to your account or create a new one if needed.
-
Navigate to the API section and generate an API key for GPT-3.5.
-
Copy the API key and paste it into the
.env
file using the following format:API_KEY=YOUR_API_KEY
-
-
Save the
.env
file. -
Start the development server by running the following command:
npm run start:frontend
-
Start the development server by running the following command:
npm run start:backend
-
Open your browser and navigate to http://localhost:3000 to access the application.
- Upon running the application, you will be presented with an AI chat interface.
- Enter your messages in the input field and press Enter or click the Send button to send them.
- The AI model will generate responses based on your inputs, providing an interactive conversational experience.
This project is licensed under the MIT License.
Feel free to explore, modify, and use this project according to the terms of the license.
Please note that the above instructions assume you have Node.js and npm (Node Package Manager) installed on your machine. If not, make sure to install them before proceeding with the installation steps.
Remember to customize the README.md file according to your specific project details, such as adding project descriptions, usage instructions, and relevant information.