menu 云析API铺 - 云析文档平台 公告 打赏
child_care
医药百科
keyboard_arrow_down
star_border

GPT1

使用教程


请求地址 https://api.a20safe.com/api.php?api=36&key=你的KEY&text=问题&gptkey=你的GPTkey

返回示例 {"code":0,"msg":"success","data":[{"question":"你好","reply":"你好,有什么可以帮助您的吗?","error":"","errorm":""}]}

Example

返回参数

返回参数类型说明
code Int 状态码
msg String 返回说明
data[n].question String 问题
data[n].reply String 回复内容
data[n].error String GPT错误码
data[n].errorm String GPT错误信息

						<br><br>
<table class="mdui-table"><thead><tr>
<th>返回参数</th><th>类型</th><th>说明</th></tr></thead><tbody>
<tr><td><code>code</code></td>
<td>Int</td>
<td>状态码</tr>
<tr><td><code>msg</code></td>
<td>String</td>
<td>返回说明</tr>
<tr><td><code>data[n].question</code></td>
<td>String</td>
<td>问题</tr>
<tr><td><code>data[n].reply</code></td>
<td>String</td>
<td>回复内容</tr>
<tr><td><code>data[n].error</code></td>
<td>String</td>
<td>GPT错误码</tr>
<tr><td><code>data[n].errorm</code></td>
<td>String</td>
<td>GPT错误信息</tr>
</tbody></table>
					

请求参数

请求参数必填类型说明
api String 接口id
key String 你的key
text String 你的问题
gptkey String 你的GPTkey(直接填写GPT-key或填写zdy,zdy:从'顺序返回'接口(id:53,文档 https://api.a20safe.com/doc/53 )中按顺序获取预先存储的GPT-key,此方法可防止泄露GPT-key和破解官方频率限制)
auto String 自动检测并删除无效GPT-key(填写1时启动该功能;只有当参数gptkey填写为zdy时,填写此参数才有意义;作用:自动删除从 顺序返回 接口获取到的无效/异常GPT-key,相当于帮你自动检测并清理失效GPT-key,而无需你再手动检测)
model String 模型(不支持GPT4,默认text-davinci-003)
url String 中转站网址(默认官网,不需要填http(s)://及末尾的/)