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 @@ -22,9 +22,9 @@ classifiers = [
dependencies = [
# ---- 配置 / 环境 ----
"PyYAML==6.0.3",
"pydantic==2.14.2",
"pydantic==2.14.3",
"python-dotenv==1.2.4",
"platformdirs==4.14.0",
"platformdirs==4.14.5",
# ---- LLM / 嵌入模型 ----
"openai==2.54.0",
"numpy==2.5.4",
Expand All @@ -35,7 +35,7 @@ dependencies = [
"fastapi==0.162.0",
"uvicorn==0.54.0",
"jinja2==3.1.6",
"python-multipart==0.0.32",
"python-multipart==0.0.33",
"pyjwt==2.15.1",
# ---- 向量检索 / OCR ----
"faiss-cpu==1.15.1",
Expand Down Expand Up @@ -67,14 +67,14 @@ dependencies = [
# msgpack 是 cachecontrol 的传递依赖,uv.lock 曾解析到 1.2.1,命中
# CVE-2026-114613(strict_map_key 校验失败时 C 扩展无界内存泄漏,high)。
# 上游约束不含下限,故显式钉到首个修复版,锁文件由 CI 流水线重生成。
"msgpack==1.2.3",
"msgpack==1.2.4",
]

[project.optional-dependencies]
# 开发/CI 期依赖,同样钉版:ruff 版本会直接影响 lint 结果,pytest 版本影响用例行为,
# 不钉版会导致「本地绿、CI 红」。pytest* 三项必须与 requirements.txt 的测试段保持同版本。
dev = [
"ruff==0.17.3",
"ruff==0.17.4",
"pyright==1.1.414",
"pytest==9.2.0",
"pytest-cov==7.1.0",
Expand Down
18 changes: 9 additions & 9 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ charset-normalizer==3.5.2
# via
# pdfminer-six
# requests
click==8.5.0
click==8.5.1
# via
# huggingface-hub
# uvicorn
Expand Down Expand Up @@ -108,7 +108,7 @@ jinja2==3.1.6
# via
# -r requirements.txt
# torch
jiter==0.18.0
jiter==0.19.0
# via openai
joblib==1.6.0
# via scikit-learn
Expand All @@ -124,7 +124,7 @@ mdurl==0.1.2
# via markdown-it-py
mpmath==1.3.0
# via sympy
msgpack==1.2.3
msgpack==1.2.4
# via -r requirements.txt
narwhals==2.28.0
# via scikit-learn
Expand Down Expand Up @@ -214,7 +214,7 @@ pillow==13.0.0
# pytesseract
# python-pptx
# rapidocr-onnxruntime
platformdirs==4.14.0
platformdirs==4.14.5
# via -r requirements.txt
pluggy==1.7.0
# via
Expand All @@ -228,12 +228,12 @@ pyclipper==1.4.0
# via rapidocr-onnxruntime
pycparser==3.12 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy'
# via cffi
pydantic==2.14.2
pydantic==2.14.3
# via
# -r requirements.txt
# fastapi
# openai
pydantic-core==2.50.2
pydantic-core==2.50.4
# via pydantic
pygments==2.21.0
# via
Expand All @@ -260,7 +260,7 @@ python-docx==1.2.0
# via -r requirements.txt
python-dotenv==1.2.4
# via -r requirements.txt
python-multipart==0.0.32
python-multipart==0.0.33
# via -r requirements.txt
python-pptx==1.0.2
# via -r requirements.txt
Expand Down Expand Up @@ -324,11 +324,11 @@ tqdm==4.69.0
# openai
# sentence-transformers
# transformers
transformers==5.22.1
transformers==5.22.2
# via sentence-transformers
triton==3.9.0 ; python_full_version < '3.16' and sys_platform == 'linux'
# via torch
typer==0.27.3
typer==0.28.0
# 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 @@ -4,9 +4,9 @@

# ---- 配置 / 环境 ----
PyYAML==6.0.3
pydantic==2.14.2
pydantic==2.14.3
python-dotenv==1.2.4
platformdirs==4.14.0
platformdirs==4.14.5

# ---- LLM / 嵌入模型 ----
openai==2.54.0
Expand All @@ -20,7 +20,7 @@ fastapi==0.162.0
uvicorn==0.54.0
pyjwt==2.15.1
jinja2==3.1.6
python-multipart==0.0.32
python-multipart==0.0.33

# ---- 向量检索 / OCR ----
faiss-cpu==1.15.1
Expand Down Expand Up @@ -58,7 +58,7 @@ psutil==7.2.2
# msgpack 是 cachecontrol 的传递依赖,uv.lock 曾解析到 1.2.1,命中
# CVE-2026-114613(strict_map_key 校验失败时 C 扩展无界内存泄漏,high)。
# 上游约束不含下限,故显式钉到首个修复版,锁文件由 CI 流水线重生成。
msgpack==1.2.3
msgpack==1.2.4

# ---- 测试(构建二进制时不会被打包,仅在开发/CI 安装)----
pytest==9.2.0
Expand Down
Loading
Loading