PHP code example of ihsandevs / php-edge-gpt

1. Go to this page and download the library: Download ihsandevs/php-edge-gpt 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/ */

    

ihsandevs / php-edge-gpt example snippets




hsandevs\EdgeGpt\Chatbot;

$bot = new Chatbot(__DIR__ . '/cookies.json');

// You can use the following conversation styles: CREATIVE, BALANCED, PRECISE. Or you can keep it empty.
$response = $bot->ask('Buatkan kode php untuk menampilkan "Hello Ihsan Devs" pada terminal.', 'PRECISE');

echo $response->answer();
bash
composer