Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@ dependencies = [
"huggingface_hub==1.33.0",
"tokenizers==0.23.3",
# ---- Web 服务 ----
"fastapi==0.162.0",
"fastapi==0.162.5",
"uvicorn==0.54.0",
"jinja2==3.1.6",
"python-multipart==0.0.33",
"pyjwt==2.15.1",
# ---- 向量检索 / OCR ----
"faiss-cpu==1.15.1",
"faiss-cpu==1.16.0",
"requests==2.34.2",
# urllib3 必须显式钉版:requests 只约束 `>=1.21.1,<3`,不钉会导致部署环境
# 复用已有旧 urllib3(<2.0)时,poolmanager(≥2.0) 与 connectionpool.PoolKey(<2.0)
# 被解析成不同版本,触发 `PoolKey.__new__() got an unexpected keyword argument
# 'key_pool_classes_by_scheme'`,使所有走 SSRF 钉 IP 的工具崩溃(见 issue #46)。
"urllib3==2.8.0",
"jieba==0.42.1",
"regex==2026.9.29",
"regex==2026.11.9",
"rapidocr-onnxruntime==1.2.3",
# ---- 文档解析 ----
"beautifulsoup4==4.15.0",
"pdfplumber==0.11.10",
# pypdfium2:PDF 页面渲染(扫描版 PDF → 图片 → OCR)。原用 PyMuPDF,因其为
# AGPL-3.0 许可、对外提供网络服务时触发第 13 条源码提供义务而替换。
# 它同时是 pdfplumber 的传递依赖,此处显式声明,避免上游换引擎后静默失效。
"pypdfium2==5.14.0",
"pypdfium2==5.15.2",
"python-pptx==1.0.2",
"python-docx==1.2.0",
"pytesseract==0.3.13",
Expand All @@ -74,7 +74,7 @@ dependencies = [
# 开发/CI 期依赖,同样钉版:ruff 版本会直接影响 lint 结果,pytest 版本影响用例行为,
# 不钉版会导致「本地绿、CI 红」。pytest* 三项必须与 requirements.txt 的测试段保持同版本。
dev = [
"ruff==0.17.4",
"ruff==0.17.5",
"pyright==1.1.414",
"pytest==9.2.0",
"pytest-cov==7.1.0",
Expand Down
22 changes: 12 additions & 10 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ annotated-types==0.8.0
# via pydantic
anyio==4.16.0
# via
# fastapi
# httpx
# openai
# starlette
Expand Down Expand Up @@ -47,23 +48,23 @@ colorama==0.4.6 ; sys_platform == 'win32'
# pytest
# tqdm
# typer
coverage==7.17.2
coverage==7.17.3
# via pytest-cov
cryptography==50.0.2
# via pdfminer-six
cuda-bindings==13.5.0 ; python_full_version < '3.15' and sys_platform == 'linux'
# via torch
cuda-pathfinder==1.8.6 ; python_full_version < '3.15' and sys_platform == 'linux'
cuda-pathfinder==1.9.0 ; python_full_version < '3.15' and sys_platform == 'linux'
# via cuda-bindings
cuda-toolkit==13.2.2 ; sys_platform == 'linux'
# via torch
distro==1.9.0
# via openai
et-xmlfile==2.0.0
# via openpyxl
faiss-cpu==1.15.1
faiss-cpu==1.16.0
# via -r requirements.txt
fastapi==0.162.0
fastapi==0.162.5
# via -r requirements.txt
filelock==4.2.1
# via
Expand Down Expand Up @@ -116,7 +117,7 @@ lxml==6.1.3
# via
# python-docx
# python-pptx
markdown-it-py==4.2.0
markdown-it-py==4.3.0
# via rich
markupsafe==3.0.4
# via jinja2
Expand Down Expand Up @@ -233,6 +234,7 @@ pydantic==2.14.3
# -r requirements.txt
# fastapi
# openai
# typer
pydantic-core==2.50.4
# via pydantic
pygments==2.21.0
Expand All @@ -241,7 +243,7 @@ pygments==2.21.0
# rich
pyjwt==2.15.1
# via -r requirements.txt
pypdfium2==5.14.0
pypdfium2==5.15.2
# via
# -r requirements.txt
# pdfplumber
Expand Down Expand Up @@ -272,7 +274,7 @@ pyyaml==6.0.3
# transformers
rapidocr-onnxruntime==1.2.3
# via -r requirements.txt
regex==2026.9.29
regex==2026.11.9
# via
# -r requirements.txt
# transformers
Expand Down Expand Up @@ -302,7 +304,7 @@ six==1.17.0
# via rapidocr-onnxruntime
sniffio==1.3.1
# via openai
soupsieve==4.0.1
soupsieve==4.1.1
# via beautifulsoup4
starlette==1.10.0
# via fastapi
Expand All @@ -324,11 +326,11 @@ tqdm==4.69.0
# openai
# sentence-transformers
# transformers
transformers==5.22.2
transformers==5.23.0
# via sentence-transformers
triton==3.9.0 ; python_full_version < '3.16' and sys_platform == 'linux'
# via torch
typer==0.28.0
typer==0.29.1
# via transformers
typing-extensions==4.16.0
# via
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ huggingface_hub==1.33.0
tokenizers==0.23.3

# ---- Web 服务 ----
fastapi==0.162.0
fastapi==0.162.5
uvicorn==0.54.0
pyjwt==2.15.1
jinja2==3.1.6
python-multipart==0.0.33

# ---- 向量检索 / OCR ----
faiss-cpu==1.15.1
faiss-cpu==1.16.0
requests==2.34.2
# urllib3 必须显式钉版:requests 只约束 >=1.21.1,<3,不钉会导致部署环境复用已有旧
# urllib3(<2.0) 时 poolmanager(≥2.0) 与 connectionpool.PoolKey(<2.0) 被解析成不同版本,
# 触发 `PoolKey.__new__() got an unexpected keyword argument 'key_pool_classes_by_scheme'`,
# 使所有走 SSRF 钉 IP 的工具崩溃(见 issue #46)。
urllib3==2.8.0
jieba==0.42.1
regex==2026.9.29
regex==2026.11.9
rapidocr-onnxruntime==1.2.3

# ---- 文档解析 ----
Expand All @@ -43,7 +43,7 @@ pdfplumber==0.11.10
# pypdfium2:扫描版 PDF 的页面渲染(→ RapidOCR)。替代原 PyMuPDF(AGPL-3.0,
# 对外提供网络服务会触发第 13 条源码提供义务)。它同时是 pdfplumber 的传递
# 依赖,此处显式钉版,避免上游更换渲染引擎后 src/tools/parse_document.py 静默失效。
pypdfium2==5.14.0
pypdfium2==5.15.2
python-pptx==1.0.2
python-docx==1.2.0
pytesseract==0.3.13
Expand Down
Loading
Loading