diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2024-09-29 22:42:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-29 22:42:37 +0200 |
commit | 0792deeffcec6241676b073e4e849fcaa084c736 (patch) | |
tree | 41d9d2cb35323703a2a3c4f50407800f822fedb1 /g4f/gui/server/internet.py | |
parent | Merge pull request #2251 from MirrorCY/main (diff) | |
parent | Duck Duck Go Async Text Search Bug Fix (diff) | |
download | gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar.gz gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar.bz2 gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar.lz gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar.xz gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.tar.zst gpt4free-0792deeffcec6241676b073e4e849fcaa084c736.zip |
Diffstat (limited to 'g4f/gui/server/internet.py')
-rw-r--r-- | g4f/gui/server/internet.py | 2 |
1 files changed, 1 insertions, 1 deletions
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", |