Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
c12e553e
Commit
c12e553e
authored
Jul 02, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 网页搜索插件过滤 content为空的数据
parent
92d44e98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
WebSearchFunction.java
...ource/demand/ai/function/web_seach/WebSearchFunction.java
+5
-5
No files found.
src/main/java/cn/com/poc/thirdparty/resource/demand/ai/function/web_seach/WebSearchFunction.java
View file @
c12e553e
...
...
@@ -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
();
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment