返回提交历史
Modified
g4f/gui/server/internet.py
+1
-1
XFEstudio/gpt4free
Update internet.py
0f81b617
代码差异
1 个文件
+1
-1
@@ -99,7 +99,7 @@ async def fetch_and_scrape(session: ClientSession, url: str, max_words: int = No
99
99
async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text: bool = True) -> SearchResults:
100
100
if not has_requirements:
101
101
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
102
async with AsyncDDGS() as ddgs:
102
async with DDGS() as ddgs:
103
103
results = []
104
104
for result in await ddgs.atext(
105
105
query,