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 @@ -21,7 +21,7 @@ classifiers = [
# 注意:pytest / pytest-cov / pytest-timeout 属于测试期依赖,只出现在下面的 dev extra。
dependencies = [
# ---- 配置 / 环境 ----
"PyYAML==6.0.3",
"PyYAML==6.0.4",
"pydantic==2.14.4",
"python-dotenv==1.2.4",
"platformdirs==4.14.8",
Expand All @@ -45,22 +45,22 @@ dependencies = [
"requests==2.34.2",
# httpx 显式钉版:llm/client.py、web/routers/image.py 及多数 Web 测试直接
# import httpx,显式声明避免传递依赖变化导致 CI 测试收集失败(详见 requirements.txt)。
"httpx==0.28.1",
"httpx==0.29.0",
# 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.11.19",
"regex==2026.11.25",
"rapidocr-onnxruntime==1.4.4",
# OpenCV 钉 5.1.0.95:5.0/4.14 的 KleidiCV resize 在 ARM64 macOS 缩放比例略小
# 于 1.0 时 SIGSEGV(opencv#29794);PR #30486 已修,5.1 经真实图压测全过。
# 详见 requirements.txt 同条注释 / 2026-11-19 崩溃报告。
"opencv-python==5.1.0.95",
# ---- 文档解析 ----
"beautifulsoup4==4.15.0",
"pdfplumber==0.11.10",
"pdfplumber==0.11.11",
# pypdfium2:PDF 页面渲染(扫描版 PDF → 图片 → OCR)。原用 PyMuPDF,因其为
# AGPL-3.0 许可、对外提供网络服务时触发第 13 条源码提供义务而替换。
# 它同时是 pdfplumber 的传递依赖,此处显式声明,避免上游换引擎后静默失效。
Expand All @@ -84,7 +84,7 @@ dependencies = [
# (两份锁历史漂移:requirements.lock 已 4.1.1、uv.lock 仍 2.9.2)。
# 项目只用 html.parser + 基础 select,不依赖 4.0 改变语义的 <template>/<iframe>
# 边界行为,无破坏性影响。
"soupsieve==4.1.2",
"soupsieve==4.1.3",
# opentelemetry-api 是 fastapi 的传递依赖,uv.lock 停在 1.45.1,命中
# Dependabot #52(traceparent 解析二次时间复杂度 DoS),钉到修复版 1.45.2。
"opentelemetry-api==1.45.2",
Expand Down
22 changes: 11 additions & 11 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
# pytest
# tqdm
# typer
coverage==7.17.4
coverage==7.18.0
# via pytest-cov
cryptography==50.0.2
# via pdfminer-six
Expand Down Expand Up @@ -86,7 +86,7 @@ hf-xet==1.8.0 ; platform_machine == 'AMD64' or platform_machine == 'aarch64' or
# via huggingface-hub
httpcore==1.0.9
# via httpx
httpx==0.28.1
httpx==0.29.0
# via
# -r requirements.txt
# huggingface-hub
Expand Down Expand Up @@ -114,7 +114,7 @@ jiter==0.19.0
# via openai
joblib==1.6.0
# via scikit-learn
lxml==6.1.3
lxml==6.2.1
# via
# python-docx
# python-pptx
Expand Down Expand Up @@ -201,7 +201,7 @@ opentelemetry-api==1.45.2
# via
# -r requirements.txt
# fastapi
packaging==26.3
packaging==26.4
# via
# faiss-cpu
# huggingface-hub
Expand All @@ -211,7 +211,7 @@ packaging==26.3
# transformers
pdfminer-six==20260107
# via pdfplumber
pdfplumber==0.11.10
pdfplumber==0.11.11
# via -r requirements.txt
pillow==13.0.0
# via
Expand Down Expand Up @@ -271,15 +271,15 @@ python-multipart==0.0.34
# via -r requirements.txt
python-pptx==1.0.2
# via -r requirements.txt
pyyaml==6.0.3
pyyaml==6.0.4
# via
# -r requirements.txt
# huggingface-hub
# rapidocr-onnxruntime
# transformers
rapidocr-onnxruntime==1.4.4
# via -r requirements.txt
regex==2026.11.19
regex==2026.11.25
# via
# -r requirements.txt
# transformers
Expand Down Expand Up @@ -309,7 +309,7 @@ six==1.17.0
# via rapidocr-onnxruntime
sniffio==1.3.1
# via openai
soupsieve==4.1.2
soupsieve==4.1.3
# via
# -r requirements.txt
# beautifulsoup4
Expand All @@ -334,11 +334,11 @@ tqdm==4.70.1
# rapidocr-onnxruntime
# sentence-transformers
# transformers
transformers==5.24.0
transformers==5.24.1
# via sentence-transformers
triton==3.9.0 ; python_full_version < '3.16' and sys_platform == 'linux'
# via torch
typer==0.29.2
typer==0.29.3
# via transformers
typing-extensions==4.16.0
# via
Expand All @@ -365,5 +365,5 @@ urllib3==2.8.0
# requests
uvicorn==0.54.0
# via -r requirements.txt
xlsxwriter==3.3.4
xlsxwriter==3.3.5
# via python-pptx
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 如需升级依赖,请在本机 .venv 升级后重新核对版本再改此处。

# ---- 配置 / 环境 ----
PyYAML==6.0.3
PyYAML==6.0.4
pydantic==2.14.4
python-dotenv==1.2.4
platformdirs==4.14.8
Expand Down Expand Up @@ -34,14 +34,14 @@ requests==2.34.2
# import httpx。曾试升 openai 3.x(改用私有 httpx2,不再带入 httpx)导致 CI 全新
# sync 后 13 个测试模块收集失败;openai 已回退 2.x,此处显式钉版保证任何情况下
# httpx 都在,避免传递依赖变化再次让收集失败。
httpx==0.28.1
httpx==0.29.0
# 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.11.19
regex==2026.11.25
rapidocr-onnxruntime==1.4.4
# opencv-python:RapidOCR 的传递依赖,图片缩放(cv2.resize)底层实现。
# 钉在 5.1.0.95:5.0.0.93 / 4.14.x 的 KleidiCV resize 在 ARM64 macOS 上,
Expand All @@ -57,7 +57,7 @@ opencv-python==5.1.0.95
# (src/tools/parse_document.py)与历史消息清洗(src/memory/sqlite_store.py)均依赖,
# 缺失会让「从 URL 导入知识库」直接 500。
beautifulsoup4==4.15.0
pdfplumber==0.11.10
pdfplumber==0.11.11
# pypdfium2:扫描版 PDF 的页面渲染(→ RapidOCR)。替代原 PyMuPDF(AGPL-3.0,
# 对外提供网络服务会触发第 13 条源码提供义务)。它同时是 pdfplumber 的传递
# 依赖,此处显式钉版,避免上游更换渲染引擎后 src/tools/parse_document.py 静默失效。
Expand All @@ -83,7 +83,7 @@ msgpack==1.2.4
# (两份锁历史漂移:requirements.lock 已 4.1.1、uv.lock 仍 2.9.2)。
# 项目只用 html.parser + 基础 select,不依赖 4.0 改变语义的 <template>/<iframe>
# 边界行为,无破坏性影响。
soupsieve==4.1.2
soupsieve==4.1.3
# opentelemetry-api 是 fastapi 的传递依赖,uv.lock 停在 1.45.1,命中
# Dependabot #52(traceparent 解析二次时间复杂度 DoS),钉到修复版 1.45.2。
opentelemetry-api==1.45.2
Expand Down
Loading
Loading