mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 19:11:48 +03:00
Merge pull request #2252 from elitexp/fix/asyncDDG-2236
Duck Duck Go Async Text Search Bug Fix
This commit is contained in:
commit
0792deeffc
@ -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')
|
||||
async with AsyncDDGS() as ddgs:
|
||||
results = []
|
||||
for result in await ddgs.text(
|
||||
for result in await ddgs.atext(
|
||||
query,
|
||||
region="wt-wt",
|
||||
safesearch="moderate",
|
||||
|
Loading…
Reference in New Issue
Block a user