mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-15 06:13:01 +00:00
Fiy unittests with duckduckgo-search 5.0
This commit is contained in:
parent
e889f3cb9b
commit
ccac427ac1
@ -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')
|
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
|
||||||
async with AsyncDDGS() as ddgs:
|
async with AsyncDDGS() as ddgs:
|
||||||
results = []
|
results = []
|
||||||
async for result in ddgs.text(
|
for result in await ddgs.text(
|
||||||
query,
|
query,
|
||||||
region="wt-wt",
|
region="wt-wt",
|
||||||
safesearch="moderate",
|
safesearch="moderate",
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
requests
|
requests
|
||||||
pycryptodome
|
pycryptodome
|
||||||
curl_cffi>=0.6.0b9
|
curl_cffi>=0.6.2
|
||||||
aiohttp
|
aiohttp
|
||||||
certifi
|
certifi
|
||||||
browser_cookie3
|
browser_cookie3
|
||||||
PyExecJS
|
PyExecJS
|
||||||
duckduckgo-search>=4.4.3
|
duckduckgo-search>=5.0
|
||||||
nest_asyncio
|
nest_asyncio
|
||||||
werkzeug
|
werkzeug
|
||||||
loguru
|
loguru
|
||||||
|
6
setup.py
6
setup.py
@ -15,13 +15,13 @@ INSTALL_REQUIRE = [
|
|||||||
|
|
||||||
EXTRA_REQUIRE = {
|
EXTRA_REQUIRE = {
|
||||||
'all': [
|
'all': [
|
||||||
"curl_cffi>=0.6.0b9",
|
"curl_cffi>=0.6.2",
|
||||||
"certifi",
|
"certifi",
|
||||||
"async-property", # openai
|
"async-property", # openai
|
||||||
"py-arkose-generator", # openai
|
"py-arkose-generator", # openai
|
||||||
"browser_cookie3", # get_cookies
|
"browser_cookie3", # get_cookies
|
||||||
"PyExecJS", # GptForLove
|
"PyExecJS", # GptForLove
|
||||||
"duckduckgo-search>=4.4.3",# internet.search
|
"duckduckgo-search>=5.0" ,# internet.search
|
||||||
"beautifulsoup4", # internet.search and bing.create_images
|
"beautifulsoup4", # internet.search and bing.create_images
|
||||||
"brotli", # openai
|
"brotli", # openai
|
||||||
"platformdirs", # webdriver
|
"platformdirs", # webdriver
|
||||||
@ -56,7 +56,7 @@ EXTRA_REQUIRE = {
|
|||||||
"gui": [
|
"gui": [
|
||||||
"werkzeug", "flask",
|
"werkzeug", "flask",
|
||||||
"beautifulsoup4", "pillow",
|
"beautifulsoup4", "pillow",
|
||||||
"duckduckgo-search>=4.4.3",
|
"duckduckgo-search>=5.0",
|
||||||
"browser_cookie3"
|
"browser_cookie3"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user