Commit c12e553e authored by alex yao's avatar alex yao

fix: 网页搜索插件过滤 content为空的数据

parent 92d44e98
......@@ -122,12 +122,12 @@ public class WebSearchFunction extends AbstractLargeModelFunction {
int index = htmlContent.length() / 2;
htmlContent = htmlContent.substring(index - 725, index + 725);
}
WebSearchFunctionResult webSearchResult = new WebSearchFunctionResult();
webSearchResult.setTitle(item.getTitle());
webSearchResult.setUrl(item.getLink());
webSearchResult.setContent(htmlContent);
results.add(webSearchResult);
}
WebSearchFunctionResult webSearchResult = new WebSearchFunctionResult();
webSearchResult.setTitle(item.getTitle());
webSearchResult.setUrl(item.getLink());
webSearchResult.setContent(htmlContent);
results.add(webSearchResult);
countDownLatch.countDown();
});
}
......
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