Implementation of AI in laravel, originally with OpenAI
- php ^8.1
- OpenAI API key with paid plan
- Clone this repository
- Run
composer install
- Run php artisan key:generate
- Run php artisan serve
- Check if laravel application works
- php artisan tinker
- app(AiService::class)->generateGreeting(); Should return a greeting message or exception in CLI.