mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-05 18:20:35 -08:00
Fiy unittests with duckduckgo-search 5.0
This commit is contained in:
parent
e889f3cb9b
commit
ccac427ac1
3 changed files with 6 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
6
setup.py
6
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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue