PHP code example of back1ng / chatgptlaravelignition
1. Go to this page and download the library: Download back1ng/chatgptlaravelignition library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
back1ng / chatgptlaravelignition example snippets
composer
'solution_providers' => [
\Back1ng\ChatGPTLaravelIgnition\Solutions\ChatGPTSolution::class,
],
php artisan vendor:publish --provider="Back1ng\ChatGPTLaravelIgnition\ServiceProvider"
OPENAI_API_KEY=sk-...
OPENAI_MAX_TOKENS=256 //optional