summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2024-03-07 13:31:32 +0100
committerabc <98614666+xtekky@users.noreply.github.com>2024-03-07 13:31:32 +0100
commit8f7dbfec63edf58a3845b0bd9b06c32f41380856 (patch)
tree2945f1f1e04450a47e45a8f12bc50efb384b54f5 /g4f/gui/server
parent~ | fixed Vercel Provider (diff)
parentMerge pull request #1660 from Commenter123321/patch-1 (diff)
downloadgpt4free-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')
-rw-r--r--g4f/gui/server/internet.py2
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",