diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2024-03-07 13:31:32 +0100 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2024-03-07 13:31:32 +0100 |
commit | 8f7dbfec63edf58a3845b0bd9b06c32f41380856 (patch) | |
tree | 2945f1f1e04450a47e45a8f12bc50efb384b54f5 /g4f/gui/server/internet.py | |
parent | ~ | fixed Vercel Provider (diff) | |
parent | Merge pull request #1660 from Commenter123321/patch-1 (diff) | |
download | gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar.gz gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar.bz2 gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar.lz gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar.xz gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.tar.zst gpt4free-8f7dbfec63edf58a3845b0bd9b06c32f41380856.zip |
Diffstat (limited to 'g4f/gui/server/internet.py')
-rw-r--r-- | g4f/gui/server/internet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index e784e52d..a1fafa7d 100644 --- a/g4f/gui/server/internet.py +++ b/g4f/gui/server/internet.py @@ -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 = [] - async for result in ddgs.text( + for result in await ddgs.text( query, region="wt-wt", safesearch="moderate", |