腾讯AI开放平台 SDK
Tencent AI open platform sdk
Special thanks to the generous sponsorship by:
Requirement
PHP >= 7.0Composerext-curl 拓展ext-json 拓展安装
composer require justmd5/tencent-ai
使用
$config = ['appKey' => '1106944xxx','appSecret' => 'dsgnbnWnX8Yxxxxxx','debug'=> 0,//1 show debug info ];$AI= new \Justmd5\TencentAi\Ai($config);
接口调用示例
智能闲聊 url: https://api./fcgi-bin/nlp/nlp_textchat
请求示例如下:
$params = ['question'=>'腾讯人工智能','session'=>123,];try {dd($AI->nlp->request('textchat', $params));} catch (\Justmd5\TencentAi\Exception\NotFoundException $e) {dd($e);}
文档
Tencent AI · Official Documents
帮助
qq群
Todo
parameter verify感谢
thanks to hanson/foundation-sdk源码列表
git 地址
腾讯AI开放平台 SDK /justmd5/tencent-ai
License
MIT