腾讯AI开放平台 SDK

2 篇文章 0 订阅
1 篇文章 0 订阅

腾讯AI开放平台 SDK

Tencent AI open platform sdk

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

Special thanks to the generous sponsorship by:



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: https://api.ai.qq.com/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

感谢

源码列表

git 地址

腾讯AI开放平台 SDK https://github.com/justmd5/tencent-ai

SDK 联系人 QQ语言实现接口源代码&SDK 地址
910139966PHPALLhttps://github.com/justmd5/tencent-ai
783021975JAVAALLhttps://gitee.com/xshuai/taip
1361653339GolangALLhttps://github.com/shiguanghuxian/txai
1280827369NodeJS
非全部接口实现
https://github.com/w89612b/qqai-api-sdk
1109527533Python
非全部接口实现(完善中)
https://gitee.com/french-home/TencentAISDK
1928881525.NET(C#)
OCR接口实现人脸模块接口实现
https://gitee.com/ch_1928881525/Tentcent.Ai

License

MIT

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值