腾讯AI开放平台 Tencent AI open platform 【for laravel】
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
publishes
src
tests
.editorconfig
.gitattributes
.php_cs
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

腾讯AI开放平台 SDK

Tencent AI open platform sdk

styleci PHP from Packagist Latest Stable Version Latest Unstable Version GitHub stars License

Requirement

  1. PHP >= 7.0
  2. Composer
  3. ext-curl 拓展
  4. ext-json 拓展

Install

in your laravel application, execute the following command:

composer require justmd5/laravel-tencent-ai:dev-master

Configure

add service provider to the app.php:

'providers' => [
    // Application Service Providers...
    Justmd5\LaravelTencentAi\ServiceProvider::class,
],

if you use laravel that >= 5.5 ,the above steps are not required.

publish config:

php artisan vendor:publish --provider="Justmd5\LaravelTencentAi\ServiceProvider"

after that, you might want to change some config about tencentai:

// config/tencentai.php
return [
    'appKey'    => '',
    'appSecret' => '',
    'debug'     => 0,
];

Usage

    $params = [
            'question'=>'腾讯人工智能',
            'session'=>123,
    ];
    
    dd(app('tencent-ai')->nlp->request('textchat', $params));

Documentation

Tencent AI · Official Documents

Help

qq群

Thanks

License

MIT