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