š§ BrainClone
This is a web app project that aims to clone ChatGPT, a large language model trained by OpenAI. The app allows users to input a prompt and receive a response generated by the model.
Technologies Used
- Laravel
- HTML/CSS/JavaScript
- OpenAI API
Installation
- Clone the repository:
git clone https://github.com/Yaten/BrainClone.git
- Navigate to the project directory:
cd BrainClone
- Install the required packages:
composer install
- Set up the OpenAI API key by following the instructions in the OpenAI documentation.
- Copy the
.env.example
file and rename it to.env
:cp .env.example .env
- Edit the
.env
file and add your OpenAI API key as follows:OPENAI_API_KEY=your-api-key-here
- Generate an application key:
php artisan key:generate
- Start the server:
php artisan serve
- Open a web browser and navigate to
http://localhost:8000
.
Option 2: Run with Docker Compose
- Clone the repository:
git clone https://github.com/Yaten/BrainClone.git
- Navigate to the project directory:
cd BrainClone
- Set up the OpenAI API key by following the instructions in the OpenAI documentation.
- Copy the
.env.example
file and rename it to.env
:cp .env.example .env
- Edit the
.env
file and add your OpenAI API key as follows:OPENAI_API_KEY=your-api-key-here
- Build and start the Docker containers:
docker-compose up --build
- Open a web browser and navigate to
http://localhost:8000
.
Usage
- Enter a prompt in the input field.
- Click enter
- Wait for the response to appear in the output field.
- Use reset button to start a new chat.
Demo
Contributing
Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more information.