mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-04 00:02:55 -08:00
Update internet.py
This commit is contained in:
parent
427a72eff3
commit
9da45f9a63
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text
|
||||||
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
|
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
|
||||||
async with AsyncDDGS() as ddgs:
|
async with AsyncDDGS() as ddgs:
|
||||||
results = []
|
results = []
|
||||||
for result in await ddgs.atext(
|
for result in await ddgs.atext(
|
||||||
query,
|
query,
|
||||||
region="wt-wt",
|
region="wt-wt",
|
||||||
safesearch="moderate",
|
safesearch="moderate",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue