First, Clone the repo to your server
https://github.com/arifhossen-dev/fun-GPT.git
Next, Navigate to project directory and Install composer
composer install
Next, prepare the environment file
cp .env.example .env
Next, Generate App key
php artisan key:generate
Next, collect OpenAI API key and Organization key and assign the variables in .env
OPENAI_API_KEY=
OPENAI_ORGANIZATION=
Now open the terminal and run the following command
php artisan chat
Next follow the instructions in prompts
Then ask your questions and get response as reply from OpenAI as long as you need.
Enjoy.