智能AI聊天
更多新api接口访问https://api.wanghun.top
接口地址: https://wanghun.top/api/v5/smartai.php
返回格式: json/text
请求方式: GET/POST
请求示例: https://wanghun.top/api/v5/smartai.php?msg=小笨蛋
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
msg | 是 | string | 你想搜的内容 | type | 否 | string | &type=json(输出json,默认输出text) 例: https://wanghun.top/api/v5/smartai.php?msg=小笨蛋 返回结果: 笨笨的才可爱 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
text | String | 聊天返回文本 |
heuristic | String | 重复聊天返回文本 |
返回错误码说明:
名称 | 类型 | 说明 |
---|---|---|
200 | String | 请求成功 |
400 | String | 请求错误 |
json返回示例:
{ "code": "200", "data": { "text": "沉默是金,浮躁是火,宽容是水,笨拙是木。虽然我有些木,但希望能得到你更多的水。", "heuristic": [ "null" ] }, "yaohu": "妖狐api提供" 重复聊天返回 { "code": "200", "data": { "text": "开启反弹模式", "heuristic": [ "你发什么我反弹给你,嘻嘻" ] }, "yaohu": "妖狐api提供" }