rasa : 修复Text2vecServiceImpl bug

dev_2.1.0
xueqingkun 1 year ago
parent 856ba27c19
commit d726a73ad0

@ -85,7 +85,7 @@ public class Text2vecServiceImpl implements Text2vecService {
Assert.notEmpty(text2vecMatchesReq.getQuerySentence(), "querySentence不能为空");
String path = Objects.isNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH;
String path = Objects.nonNull(text2vecMatchesReq.getThreshold()) ? MATCHES_PATH : GET_ALL_SIMILARITIES_PATH;
String url = TEXT2VEC_SERVICE_DOMAIN + path;
log.info("matches: url is : {},req:{}",url,JSONUtil.toJsonStr(text2vecMatchesReq));

Loading…
Cancel
Save