summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-06 17:41:17 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-06 17:41:17 +0100
commitccac427ac139653e838fff18741bf232036766bb (patch)
tree06ad1dccf40b62b519bc3e8170c88346cda11e44 /g4f/gui/server
parentUse word word count from alfaaz (diff)
downloadgpt4free-ccac427ac139653e838fff18741bf232036766bb.tar
gpt4free-ccac427ac139653e838fff18741bf232036766bb.tar.gz
gpt4free-ccac427ac139653e838fff18741bf232036766bb.tar.bz2
gpt4free-ccac427ac139653e838fff18741bf232036766bb.tar.lz
gpt4free-ccac427ac139653e838fff18741bf232036766bb.tar.xz
gpt4free-ccac427ac139653e838fff18741bf232036766bb.tar.zst
gpt4free-ccac427ac139653e838fff18741bf232036766bb.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",