Merge remote-tracking branch 'origin/dev' into dev

jinan_dev
xueqingkun 6 months ago
commit 8b5e53225d

@ -168,7 +168,6 @@ public class ChatServiceImpl implements ChatService {
if (json.getBoolean("isFunctionCalling")) { if (json.getBoolean("isFunctionCalling")) {
answerMap = executeIntent(json.getString("intentType"), caseId, json.getString("query"), answerMap, modelIndices); answerMap = executeIntent(json.getString("intentType"), caseId, json.getString("query"), answerMap, modelIndices);
} else { } else {
chatResVO.setAnswer(json.getString("answerText"));
chatResVO.setSegmentList(JSONArray.parseArray(json.getString("quote"), KnowledgeBaseSegmentVO.class)); chatResVO.setSegmentList(JSONArray.parseArray(json.getString("quote"), KnowledgeBaseSegmentVO.class));
} }
JSONArray adviceList = json.getJSONArray("adviceList"); JSONArray adviceList = json.getJSONArray("adviceList");
@ -190,6 +189,7 @@ public class ChatServiceImpl implements ChatService {
adviceMapList.add(Map.of("indexType", "", "indexName", "以上都不是")); adviceMapList.add(Map.of("indexType", "", "indexName", "以上都不是"));
answerMap.put("adviceList", adviceMapList); answerMap.put("adviceList", adviceMapList);
} }
chatResVO.setAnswer(json.getString("answerText"));
chatResVO.setDialogueCount(json.getInteger("dialogueCount") == null ? 0 : json.getInteger("dialogueCount")); chatResVO.setDialogueCount(json.getInteger("dialogueCount") == null ? 0 : json.getInteger("dialogueCount"));
} else { } else {
log.error("返回结果格式异常query:【{}】", query); log.error("返回结果格式异常query:【{}】", query);

Loading…
Cancel
Save