summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/gui/server/internet.py2
-rw-r--r--requirements.txt4
-rw-r--r--setup.py6
3 files changed, 6 insertions, 6 deletions
diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py
index e784e52d..a1fafa7d 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 = []
- async for result in ddgs.text(
+ for result in await ddgs.text(
query,
region="wt-wt",
safesearch="moderate",
diff --git a/requirements.txt b/requirements.txt
index 4310a96c..f9a9c330 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,11 +1,11 @@
requests
pycryptodome
-curl_cffi>=0.6.0b9
+curl_cffi>=0.6.2
aiohttp
certifi
browser_cookie3
PyExecJS
-duckduckgo-search>=4.4.3
+duckduckgo-search>=5.0
nest_asyncio
werkzeug
loguru
diff --git a/setup.py b/setup.py
index 944445c1..3ac0f0cb 100644
--- a/setup.py
+++ b/setup.py
@@ -15,13 +15,13 @@ INSTALL_REQUIRE = [
EXTRA_REQUIRE = {
'all': [
- "curl_cffi>=0.6.0b9",
+ "curl_cffi>=0.6.2",
"certifi",
"async-property", # openai
"py-arkose-generator", # openai
"browser_cookie3", # get_cookies
"PyExecJS", # GptForLove
- "duckduckgo-search>=4.4.3",# internet.search
+ "duckduckgo-search>=5.0" ,# internet.search
"beautifulsoup4", # internet.search and bing.create_images
"brotli", # openai
"platformdirs", # webdriver
@@ -56,7 +56,7 @@ EXTRA_REQUIRE = {
"gui": [
"werkzeug", "flask",
"beautifulsoup4", "pillow",
- "duckduckgo-search>=4.4.3",
+ "duckduckgo-search>=5.0",
"browser_cookie3"
]
}