mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Duck Duck Go Async Text Search Bug Fix
This commit is contained in:
parent
f13b214c8b
commit
296e2b498d
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')
|
||||
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…
Add table
Add a link
Reference in a new issue