From 296e2b498df833b10af7cc8cafdd38a72df8ced1 Mon Sep 17 00:00:00 2001 From: Sujip Maharjan Date: Sat, 28 Sep 2024 11:39:04 +0545 Subject: Duck Duck Go Async Text Search Bug Fix --- g4f/gui/server/internet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index a1fafa7d..78bea0ca 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 = [] - for result in await ddgs.text( + for result in await ddgs.atext( query, region="wt-wt", safesearch="moderate", -- cgit v1.2.3