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.
- Laravel
- HTML/CSS/JavaScript
- OpenAI API
- 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
.
- 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
.
- 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.
Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.