Commit 812e460c authored by yangyw's avatar yangyw

Merge branch 'refs/heads/feature/20241217_收尾' into sandbox

parents 558a9a65 282ab1ee
......@@ -632,9 +632,9 @@ public class AppChatCompletionService {
JSONArray knowledge = payload.getJSONArray("knowledge");
if (ObjectUtil.isNotNull(knowledge) && knowledge.size() > 0) {
for (Object kb : knowledge) {
LinkedHashMap item = (LinkedHashMap) kb;
if (ObjectUtil.equals(2, (Integer)item.get("type"))) {
references.add((String)item.get("seg_id"));
JSONObject item = (JSONObject) kb;
if (ObjectUtil.equals(2, item.getInteger("type"))) {
references.add(item.getString("seg_id"));
}
}
}
......
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