v1.0.0
header请求参数(token值获取请联系网站管理员)
{
"Authorization": "Bearer token值xxxxxx"
}Body 请求参数
{
"prompt": "查一下老钱的信息",
"stream": false,
"uuid": "6b8d9de4-723b-11ee-b3ec-9a08daxxxxxx",
"appid": "2011",
"app_type": "001"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| body | body | object | 否 | ||
| » prompt | body | string | 是 | 问题 | |
| » stream | body | boolean | 是 | 流式返回 | |
| » uuid | body | string | 是 | 会话的唯一键 | |
| » appid | body | string | 是 | 2011 | 微应用id/应用id |
| » app_type | body | string | 是 | 001 | 001微应用 002智能问答 003智能BI |
返回示例
200 Response
{
"error_code": 0,
"data": {
"input": "查一下钱杨的信息",
"msg_id": "ff870908-7e03-11ee-bc0b-fa670e14967e",
"created": 1699426613,
"output": [
{
"content": "人员姓名1:钱杨\n住址:北京市xxxxx\n人员特征:xxxxx",
"type": "str"
}
]
}
}| 状态码 | 状态码含义 | 说明 |
|---|---|---|
| 200 | OK | 成功 |
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| error_code | body | object | 否 | 错误码 | 0为成功 |
| data | |||||
| » input | 问题输入 | ||||
| » msg_id | body | string | 是 | 消息id | |
| » created | body | boolean | 是 | 创建时间戳秒 | |
| » output | body | string | 是 | 会话的唯一键 | |
| »» content | body | string | 是 | 输出内容 | |
| »» type | body | string | 是 | 输出内容类型 |