From 9da45f9a63c06925e633f6e515c6e16e5177160a Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Fri, 15 Nov 2024 18:19:14 +0100 Subject: Update internet.py --- g4f/gui/server/internet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/gui/server/internet.py') diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index 70442415..a2d0165b 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.atext( + for result in await ddgs.atext( query, region="wt-wt", safesearch="moderate", -- cgit v1.2.3