justmd5/tencent-ai

241 阅读1分钟
原文链接: github.com

Tencent AI open platform sdk

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

Requirement

  1. PHP >= 7.0
  2. Composer
  3. ext-curl 拓展
  4. 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: api.ai.qq.com/fcgi-bin/nl… 请求示例如下:

$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

感谢

源码列表

SDK 联系人 QQ 语言 实现接口 源代码&SDK 地址
910139966 PHP ALL github.com/justmd5/ten…
783021975 JAVA ALL gitee.com/xshuai/taip
1361653339 Golang ALL github.com/shiguanghux…
1280827369 NodeJS 非全部接口实现 github.com/w89612b/qqa…
1109527533 Python 非全部接口实现(完善中) gitee.com/french-home…
1928881525 .NET(C#) OCR接口实现人脸模块接口实现 gitee.com/ch_19288815…

License

MIT