PHP code example of aisdk / meta
1. Go to this page and download the library: Download aisdk/meta 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/ */
aisdk / meta example snippets
use AiSdk\Generate;
use AiSdk\Meta;
$result = Generate::text('Write a PHP function that reverses a string.')
->model(Meta::model('muse-spark-1.1'))
->run();
echo $result->text;