mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix api streaming, fix AsyncClient (#2357)
* Fix api streaming, fix AsyncClient, Improve Client class, Some providers fixes, Update models list, Fix some tests, Update model list in Airforce provid er, Add OpenAi image generation url to api, Fix reload and debug in api arguments, Fix websearch in gui * Fix Cloadflare and Pi and AmigoChat provider * Fix conversation support in DDG provider, Add cloudflare bypass with nodriver * Fix unittests without curl_cffi
This commit is contained in:
parent
bc79969e5c
commit
6ce493d4df
34 changed files with 1161 additions and 1132 deletions
19
setup.py
19
setup.py
|
|
@ -13,8 +13,7 @@ INSTALL_REQUIRE = [
|
|||
"aiohttp",
|
||||
"brotli",
|
||||
"pycryptodome",
|
||||
"curl_cffi>=0.6.2",
|
||||
"cloudscraper" # Cloudflare
|
||||
"nest_asyncio",
|
||||
]
|
||||
|
||||
EXTRA_REQUIRE = {
|
||||
|
|
@ -22,18 +21,10 @@ EXTRA_REQUIRE = {
|
|||
"curl_cffi>=0.6.2",
|
||||
"certifi",
|
||||
"browser_cookie3", # get_cookies
|
||||
"PyExecJS", # GptForLove, Vercel
|
||||
"duckduckgo-search>=5.0" ,# internet.search
|
||||
"beautifulsoup4", # internet.search and bing.create_images
|
||||
"brotli", # openai, bing
|
||||
# webdriver
|
||||
#"undetected-chromedriver>=3.5.5",
|
||||
#"setuptools",
|
||||
#"selenium-wire"
|
||||
# webview
|
||||
"pywebview",
|
||||
"platformdirs",
|
||||
"plyer",
|
||||
"cryptography",
|
||||
"aiohttp_socks", # proxy
|
||||
"pillow", # image
|
||||
|
|
@ -41,7 +32,8 @@ EXTRA_REQUIRE = {
|
|||
"werkzeug", "flask", # gui
|
||||
"fastapi", # api
|
||||
"uvicorn", "nest_asyncio", # api
|
||||
"pycryptodome" # openai
|
||||
"pycryptodome", # openai
|
||||
"nodriver",
|
||||
],
|
||||
"image": [
|
||||
"pillow",
|
||||
|
|
@ -60,12 +52,9 @@ EXTRA_REQUIRE = {
|
|||
"plyer",
|
||||
"cryptography"
|
||||
],
|
||||
"openai": [
|
||||
"pycryptodome"
|
||||
],
|
||||
"api": [
|
||||
"loguru", "fastapi",
|
||||
"uvicorn", "nest_asyncio"
|
||||
"uvicorn",
|
||||
],
|
||||
"gui": [
|
||||
"werkzeug", "flask",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue