提取属性结果集初始化为空数组

topo_dev
DESKTOP-DDTUS3E\yaxin 6 months ago
parent 7af2fd841d
commit 71fe10d7a4

@ -152,7 +152,7 @@ public class LLMExtractServiceImpl implements LLMExtractService {
String content = call.getResult().getOutput().getContent();
log.info("属性提取结果: {}", content);
JSONObject jsonObject = new JSONObject(content);
List<NotePromptExtractAttributesDto> extractAttributesList = LLMExtractDto.getExtractAttributes();
List<NotePromptExtractAttributesDto> extractAttributesList = new ArrayList<>();
extractAttributesMap.forEach((key, value) -> {
String attrValue = jsonObject.optString(key);
log.info("属性提取结果: 【{}】。Key【{}】", attrValue, key);

Loading…
Cancel
Save