🐴灵析平台对外API
灵析平台API
v1.0.0
API
POST 灵析第三方调用API
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 | 是 | 输出内容类型 |
修改于 2023-11-23 05:46:42