PHP code example of mostlyserious / craft-promptly
1. Go to this page and download the library: Download mostlyserious/craft-promptly 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/ */
mostlyserious / craft-promptly example snippets
use craft\helpers\App;
return [
'openAiKey' => App::env('OPENAI_API_KEY'),
'gptModel' => 'gpt-4' // or gpt-3.5-turbo
];