summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorSujip Maharjan <elitexp2008@gmail.com>2024-09-28 07:54:04 +0200
committerSujip Maharjan <elitexp2008@gmail.com>2024-09-28 07:54:04 +0200
commit296e2b498df833b10af7cc8cafdd38a72df8ced1 (patch)
tree00e293246ef35c8c283168fffd9654ca6bc18de1 /g4f
parentAdded gpt-4o provider (diff)
downloadgpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar.gz
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar.bz2
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar.lz
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar.xz
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.tar.zst
gpt4free-296e2b498df833b10af7cc8cafdd38a72df8ced1.zip
Diffstat (limited to 'g4f')
-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 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",