Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/opendeepsearch/context_building/process_sources_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def _fetch_html_contents(self, links: List[str]) -> List[str]:
return [x['no_extraction'].content for x in raw_contents.values()]

def _process_html_content(self, html: str, query: str) -> str:
if not html:
if not html or not html.strip():
return ""
try:
# Split the HTML content into chunks
Expand Down Expand Up @@ -100,4 +100,4 @@ def _update_sources_with_content(
for (i, source), html in zip(valid_sources, html_contents):
source['html'] = self._process_html_content(html, query)
# sources[i] = source
return sources
return sources