feat(openai): 新增 v2 版机器人对话相关接口

This commit is contained in:
Fu Diwei
2024-06-05 19:39:23 +08:00
parent ea25c0bf24
commit 1aed793b08
10 changed files with 289 additions and 134 deletions

View File

@@ -0,0 +1,9 @@
{
"query": "我叫我妈妈的姐姐叫什么?",
"env": "online",
"first_priority_skills": [],
"second_priority_skills": [],
"user_name": "测试用户名",
"avatar": "https://example.com/img/avatar.png",
"userid": "123"
}

View File

@@ -0,0 +1,26 @@
{
"code": 0,
"data": {
"answer": "姨妈",
"answer_type": "text",
"intent_name": "亲戚关系问询",
"msg_id": "212140c2-b358-4d72-8049-cd4f9053fcc7",
"options": null,
"skill_name": "亲戚关系",
"slots": [
{
"name": "亲戚称呼1",
"norm": "妈妈",
"value": "妈妈"
},
{
"name": "亲戚称呼2",
"norm": "姐姐",
"value": "姐姐"
}
],
"status": "GENERAL_FAQ"
},
"msg": "success",
"request_id": "212140c2-b358-4d72-8049-cd4f9053fcc7"
}