This repository was archived by the owner on Jun 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ $AI = new \Justmd5\TencentAi\Ai($config);
4646
4747### 接口调用示例
4848> [ 智能闲聊] ( https://ai.qq.com/doc/nlpchat.shtml ) url: https://api.ai.qq.com/fcgi-bin/nlp/nlp_textchat
49- > 请求示例如下 :
49+ > 请求示例1 :
5050```
5151$params = [
5252'question'=>'腾讯人工智能',
5858 dd($e);
5959}
6060```
61+ > 请求示例2:
62+ ```
63+ $params = [
64+ //image 支持两种传递参数方式
65+ // 'image' => base64_encode(file_get_contents(__DIR__ . '/1571126902_843200.jpg')),//old
66+ 'image' => __DIR__ . '/1571126902_843200.jpg',//new
67+ 'session_id' => time(),
68+ ];
69+ try {
70+ var_dump($AI->vision->request('imgtotext', $params));
71+ } catch (\Justmd5\TencentAi\Exception\NotFoundException $e) {
72+ print_r($e->getMessage());
73+ } catch (\Justmd5\TencentAi\Exception\IllegalParameterException $e) {
74+ print_r($e->getMessage());
75+ }
76+ ```
6177### 文档
6278[ Tencent AI] ( https://ai.qq.com ) · [ Official Documents] ( https://ai.qq.com/doc/index.shtml )
6379### 帮助
7894
7995| SDK 联系人 QQ | 语言 | 实现接口 | 源代码&SDK 地址 |
8096| --- | --- | --- | --- |
81- | 910139966 | PHP | ALL | https://github.com/justmd5/tencent-ai |
8297| 783021975 | JAVA | ALL | https://gitee.com/xshuai/taip |
8398| 1361653339 | Golang | ALL | https://github.com/shiguanghuxian/txai |
8499| 1280827369 | NodeJS | <div >非全部接口实现</div >| https://github.com/w89612b/qqai-api-sdk |
85100| 1109527533 | Python | <div >非全部接口实现(完善中)</div >| https://gitee.com/french-home/TencentAISDK |
86101| 1928881525 | .NET(C#) | <div >OCR接口实现人脸模块接口实现</div >| https://gitee.com/ch_1928881525/Tentcent.Ai |
102+ | 910139966 | PHP | ALL | https://github.com/justmd5/tencent-ai |
87103
88104## License
89105
You can’t perform that action at this time.
0 commit comments