mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-09-26 20:31:14 +08:00
fix: resolve model duplication and improve provider handling
- Fixed duplicate model entries in Blackbox provider model_aliases - Added meta-llama- to llama- name cleaning in Cloudflare provider - Enhanced PollinationsAI provider with improved vision model detection - Added reasoning support to PollinationsAI provider - Fixed HuggingChat authentication to include headers and impersonate - Removed unused max_inputs_length parameter from HuggingFaceAPI - Renamed extra_data to extra_body for consistency across providers - Added Puter provider with grouped model support - Enhanced AnyProvider with grouped model display and better model organization - Fixed model cleaning in AnyProvider to handle more model name variations - Added api_key handling for HuggingFace providers in AnyProvider - Added see_stream helper function to parse event streams - Updated GUI server to handle JsonConversation properly - Fixed aspect ratio handling in image generation functions - Added ResponsesConfig and ClientResponse for new API endpoint - Updated requirements to include markitdown
This commit is contained in:
18
setup.py
18
setup.py
@@ -3,14 +3,16 @@ import os
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
STATIC_HOST = "gpt4free.github.io"
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:
|
||||
long_description = '\n' + fh.read()
|
||||
|
||||
long_description = long_description.replace("[!NOTE]", "")
|
||||
long_description = long_description.replace("(docs/images/", "(https://raw.githubusercontent.com/xtekky/gpt4free/refs/heads/main/docs/images/")
|
||||
long_description = long_description.replace("(docs/", "(https://github.com/xtekky/gpt4free/blob/main/docs/")
|
||||
long_description = long_description.replace("(docs/images/", f"(https://{STATIC_HOST}/docs/images/")
|
||||
long_description = long_description.replace("(docs/", f"(https://github.com/gpt4free/{STATIC_HOST}/blob/main/docs/")
|
||||
|
||||
INSTALL_REQUIRE = [
|
||||
"requests",
|
||||
@@ -39,11 +41,10 @@ EXTRA_REQUIRE = {
|
||||
"pywebview",
|
||||
"plyer",
|
||||
"setuptools",
|
||||
"pypdf2", # files
|
||||
"python-docx",
|
||||
"odfpy",
|
||||
"odfpy", # files
|
||||
"ebooklib",
|
||||
"openpyxl",
|
||||
"markitdown[all]"
|
||||
],
|
||||
'slim': [
|
||||
"curl_cffi>=0.6.2",
|
||||
@@ -57,8 +58,7 @@ EXTRA_REQUIRE = {
|
||||
"fastapi", # api
|
||||
"uvicorn", # api
|
||||
"python-multipart",
|
||||
"pypdf2", # files
|
||||
"python-docx",
|
||||
"markitdown[pdf, docx, pptx]"
|
||||
],
|
||||
"image": [
|
||||
"pillow",
|
||||
@@ -90,13 +90,11 @@ EXTRA_REQUIRE = {
|
||||
"gpt4all"
|
||||
],
|
||||
"files": [
|
||||
"spacy",
|
||||
"beautifulsoup4",
|
||||
"pypdf2",
|
||||
"python-docx",
|
||||
"odfpy",
|
||||
"ebooklib",
|
||||
"openpyxl",
|
||||
"markitdown[all]"
|
||||
]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user