PHP code example of justmd5 / laravel-tencent-ai
1. Go to this page and download the library: Download justmd5/laravel-tencent-ai 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/ */
justmd5 / laravel-tencent-ai example snippets
// config/tencentai.php
return [
'appKey' => '',
'appSecret' => '',
'debug' => 0,
];
$params = [
'question'=>'腾讯人工智能',
'session'=>123,
];
dd(app('tencent-ai')->nlp->request('textchat', $params));
shell
php artisan vendor:publish --provider="Justmd5\LaravelTencentAi\ServiceProvider"