BaseURL: https://hw-gz26.heyqiwu.cn ##### 意图搜索 URL: {backUrl}/api/juben/intent/query?secret=f1fvo0Yhw199PIHWTmCbbQ METHOD: POST RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=utf-8 | | Authorization | TOKEN | RequestBody: ``` { "sents":[ // 句子列表 "愿意陪伴", "没兴趣陪伴你", "看看我" ] } ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": [ // 返回意图名称 "同意陪", "不同意陪", "不同意看", "同意看" ] } ``` Example: ``` curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/intent/query' \ --header 'Content-Type: application/json' \ --data-raw '{ "sents":[ "愿意陪伴", "没兴趣陪伴你", "看看我" ] }' ``` BaseURL: https://hw-gz26.heyqiwu.cn ##### 意图搜索第二版 URL: {backUrl}/api/juben/intent/query/v2?secret=f1fvo0Yhw199PIHWTmCbbQ METHOD: POST RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=utf-8 | | Authorization | TOKEN | RequestBody: ``` { "sents":[ // 句子列表 "同意陪伴" ] } ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": [ { "intentName": "同意陪", // 意图名称 "allMatch": true // true表示全匹配, false表示模糊匹配 }, { "intentName": "质疑对方是假的", "allMatch": false } ] } ``` Example: ``` curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/intent/query/v2?secret=f1fvo0Yhw199PIHWTmCbbQ' \ --header 'Content-Type: application/json' \ --data-raw '{ "sents":[ "同意陪伴" ] }' ```