feat(openai): 拆分平台接入和第三方接入的相关接口

This commit is contained in:
Fu Diwei
2021-10-11 22:53:34 +08:00
parent 1ca9cae514
commit 1df35b5d3a
372 changed files with 2024 additions and 1871 deletions

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "172ead02b7a14bfd8aac43939c0e2cb3"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,9 @@
{
"code": 0,
"msg": "success",
"data": {
"progress": 100,
"status": 1
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"msg": "请求成功",
"data": {
"task_id": "337cd9d9-210c-4a59-972e-1c8df8c18adb"
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,19 @@
{
"code": 0,
"data": {
"default_answer": null,
"default_answer_switch": true,
"id": "3yrw9n5uknsox1pwzyz9ohb2eu4ta4wo",
"name_ch": "测试bot000121",
"name_en": "testBot000121",
"nickname": null,
"similar_question_recommend_num": 5,
"similarity": 0.9,
"similarity_low": 0.7,
"user_feedback": false,
"industry": 2,
"bot_type": 0
},
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,6 @@
{
"keyword": "测试",
"page": 1,
"size": 10,
"bot_type": -1
}

View File

@@ -0,0 +1,40 @@
{
"code": 0,
"data": {
"count": 4,
"default_bot_count": 3,
"live_bot_count": 1,
"list": [
{
"id": "3yrw9n5uknsox1pwzyz9ohb2eu4ta4wo",
"name_ch": "测试bot000121",
"name_en": "testBot000121",
"auth": 200,
"bot_type": 0
},
{
"id": "sbcvmbvxrdkjg0axix5c9driwfwqbkum",
"name_ch": "测试bot0001211",
"name_en": "testBot0001211",
"auth": 200,
"bot_type": 1
},
{
"id": "td6kko408oo5afll4b7dh3l3ybmtsrgi",
"name_ch": "测试bot000111",
"name_en": "testBot00211",
"auth": 200,
"bot_type": 0
},
{
"id": "81wfgwcjmenfs3kkapwa97hwqfnrbu1z",
"name_ch": "测试bot00013",
"name_en": "testBot00013",
"auth": 200,
"bot_type": 0
}
]
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,19 @@
{
"mode": 0,
"data": [
{
"skill": "吃啥",
"intent": "中午吃什么",
"threshold": "0.9",
"disable": false,
"questions": [
"中午吃什么?",
"中午吃啥?"
],
"answers": [
"面条",
"包子"
]
}
]
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
},
"msg": "",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,4 @@
{
"file_key": "fe48940d7310e79d6bf0a4aced56d522",
"cover": false
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"msg": "请求成功",
"data": {
"task_id": "337cd9d9-210c-4a59-972e-1c8df8c18adb"
},
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,34 @@
{
"code": 0,
"data": {
"count": 3,
"list": [
{
"created_time": "2020-08-21 18:00:51",
"description": "",
"id": "65",
"open_id": "123456",
"status": 8,
"sync_status": 0
},
{
"created_time": "2020-08-21 19:00:52",
"description": "",
"id": "79",
"open_id": "123456",
"status": 8,
"sync_status": 1
},
{
"created_time": "2020-08-21 20:00:53",
"description": "",
"id": "555",
"open_id": "123456",
"status": 9,
"sync_status": 2
}
]
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"task_id": "b86a904600eb4a2e940beb8af8d5c0d3"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,13 @@
{
"name_ch": "中文234",
"name_en": "en134",
"nickname": "测试",
"default_answer": "你好",
"default_answer_switch": true,
"similarity": 0.9,
"similarity_low": 0.7,
"similar_question_recommend_num": 5,
"user_feedback": true,
"industry": 2,
"bot_type": 0
}

View File

@@ -0,0 +1,8 @@
{
"code": 0,
"data": {
"id": "dzcmrij0zyvexs4llblxepwclfvnq3fv"
},
"msg": "success",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142"
}

View File

@@ -0,0 +1,18 @@
{
"code": 0,
"data": {
"ans_node_id": 9620273,
"ans_node_name": "吃啥",
"answer": "包子",
"answer_type": "text",
"bot_state": {
"err_msg": "",
"last_effective_time": "20210827113707"
},
"create_time": "1630035702",
"status": "GENERAL_FAQ",
"title": "中午吃什么"
},
"msg": "",
"request_id": "32482"
}