Commit 96854f63 by shenjunjie

AI搜索针对无法回答去空格处理

parent a601c50c
...@@ -4107,7 +4107,7 @@ public class MarkDataServiceImpl implements MarkDataService { ...@@ -4107,7 +4107,7 @@ public class MarkDataServiceImpl implements MarkDataService {
project.getContendList().forEach(contend -> brandStr.append("、").append(contend.getBrandName())); project.getContendList().forEach(contend -> brandStr.append("、").append(contend.getBrandName()));
} }
questionPair = standardRequest(question, modelName, MessageFormat.format(QUESTION_PROMPT, brandStr)); questionPair = standardRequest(question, modelName, MessageFormat.format(QUESTION_PROMPT, brandStr));
if (Objects.isNull(questionPair) || Objects.equals("无法回答", questionPair.getLeft())) { if (Objects.isNull(questionPair) || Objects.equals("无法回答", questionPair.getLeft().trim())) {
return null; return null;
} }
JSONObject json = JSON.parseObject(questionPair.getLeft()); JSONObject json = JSON.parseObject(questionPair.getLeft());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment