- 后台接口
- 前台接口
- 【新】后台接口
- 【新】前台接口
应用新增
POST
/adminapi/know.applyManage/add
请求参数
Header 参数
token
string
可选
示例值:
{{admin-token}}
Body 参数application/json
kb_ids
array[integer]
必需
image
string
必需
name
string
必需
intro
string
必需
welcome
string
欢迎语
example
array [object {2}]
提示词
name
string
必需
status
integer
必需
systemPrompt
string
提示词
limitPrompt
string
限定词
searchEmptyText
string
空搜索回复
searchSimilarity
integer
相似度
searchLimit
integer
单次搜索数量
chat_icon
string
对话图标
sort
integer
排序编号
is_enable
integer
必需
null_reply_type
integer
必需
is_show_context
integer
必需
is_show_quote
integer
必需
category_id
integer
必需
auth_type
integer
必需
authority
array[integer]
分组ID,数组类型
示例
{
"kb_ids": [
1
],
"category_id": 1,
"image": "http://www.php-kl.localhost/aa.png",
"name": "好的额",
"intro": "斤斤计较",
"welcome": "这是欢迎语",
"example": [
{
"name": "你好",
"status": 0
},
{
"name": "鲨B",
"status": 1
}
],
"systemPrompt": "提示词哦",
"limitPrompt": "限定词哦",
"searchEmptyText": "空的回复哦",
"searchSimilarity": 0,
"artificial_content": "",
"chat_icon": "http://www.php-kl.localhost/aa.png",
"searchLimit": 3,
"null_reply_type": 1,
"is_show_context": 1,
"is_show_quote": 1,
"is_artificial": 0,
"sort": 0,
"is_enable": 1,
"auth_type": 1,
"authority": [
0
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/know.applyManage/add' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"kb_ids": [1],
"category_id": 1,
"image": "http://www.php-kl.localhost/aa.png",
"name": "好的额",
"intro": "斤斤计较",
"welcome": "这是欢迎语",
"example": [
{"name": "你好", "status": 0},
{"name": "鲨B", "status": 1}
],
"systemPrompt": "提示词哦",
"limitPrompt": "限定词哦",
"searchEmptyText": "空的回复哦",
"searchSimilarity": 0,
"artificial_content": "",
"chat_icon": "http://www.php-kl.localhost/aa.png",
"searchLimit": 3,
"null_reply_type": 1,
"is_show_context": 1,
"is_show_quote": 1,
"is_artificial": 0,
"sort": 0,
"is_enable": 1,
"auth_type": 1,
"authority": [0]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 1,
"msg": "添加成功",
"data": []
}
修改于 2023-09-27 03:42:18