1. Go to this page and download the library: Download hiz-grup/ai-email-suggest 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/ */
hiz-grup / ai-email-suggest example snippets
return [
'model' => 'text-davinci-003',
'openai_key' => env('OPENAI_KEY'),
'default_route' => 'ai-email-suggest',
'use_cache' => true,
// If you want to use the chatgpt API,
// you need to set the following value to true:
'use_chatgpt_api' => false,
'throttle' => [
'enabled' => false,
'max_attempts' => 60,
'prefix' => 'ai-email-suggest',
],
];