mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Cleanup modules/web_search.py
This commit is contained in:
@@ -87,7 +87,7 @@ def download_web_page(url, timeout=10, include_links=False):
|
||||
return ""
|
||||
|
||||
|
||||
def perform_web_search(query, num_pages=3, max_workers=5, timeout=10, fetch_content=True):
|
||||
def perform_web_search(query, num_pages=3, max_workers=5, fetch_content=True):
|
||||
"""Perform web search and return results, optionally with page content"""
|
||||
try:
|
||||
kwargs = {'max_results': num_pages} if num_pages is not None else {}
|
||||
|
||||
Reference in New Issue
Block a user