summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server/internet.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-15 18:19:14 +0100
committerGitHub <noreply@github.com>2024-11-15 18:19:14 +0100
commit9da45f9a63c06925e633f6e515c6e16e5177160a (patch)
treee268ebe307633f98061d62f3f60b25b2acf09099 /g4f/gui/server/internet.py
parentUpdate internet.py (diff)
downloadgpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar.gz
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar.bz2
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar.lz
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar.xz
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.tar.zst
gpt4free-9da45f9a63c06925e633f6e515c6e16e5177160a.zip
Diffstat (limited to 'g4f/gui/server/internet.py')
-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 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",