git clone https://github.com/IhsanDevs/PHP-ChatBot-OpenAI.git
cd PHP-ChatBot-OpenAI
composer install
- Create a new file named
.env
and copy the content of the.env.example
to it. - Open the
.env
file and fill theOPEN_AI_KEY
with your OpenAI API Key. For getting the API Key, you can visit OpenAI. - Set your dataset for training the model in the
prompts.json
file.
php -S localhost:8000
Open your browser and go to http://localhost:8000