2026-02-24 05:19:38 +00:00
|
|
|
[project]
|
|
|
|
|
name = "ai-service"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = "Python AI Service for intelligent chat with RAG support"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.10"
|
|
|
|
|
dependencies = [
|
|
|
|
|
"fastapi>=0.109.0",
|
|
|
|
|
"uvicorn[standard]>=0.27.0",
|
|
|
|
|
"pydantic>=2.5.0",
|
|
|
|
|
"pydantic-settings>=2.1.0",
|
|
|
|
|
"sse-starlette>=2.0.0",
|
|
|
|
|
"httpx>=0.26.0",
|
|
|
|
|
"tenacity>=8.2.0",
|
|
|
|
|
"sqlmodel>=0.0.14",
|
|
|
|
|
"asyncpg>=0.29.0",
|
|
|
|
|
"qdrant-client>=1.7.0",
|
|
|
|
|
"tiktoken>=0.5.0",
|
feat(AISVC-T8): LLM配置管理与RAG调试输出支持 [AC-AISVC-42, AC-AISVC-43, AC-AISVC-44, AC-AISVC-45, AC-AISVC-46, AC-AISVC-47, AC-AISVC-48, AC-AISVC-49, AC-AISVC-50]
- 新增 LLMProviderFactory 工厂类支持 OpenAI/Ollama/Azure [AC-AISVC-42]
- 新增 LLMConfigManager 支持配置热更新 [AC-AISVC-43, AC-AISVC-44]
- 新增 LLM 管理 API 端点 [AC-AISVC-42~AC-AISVC-46]
- 更新 RAG 实验接口支持 AI 回复生成 [AC-AISVC-47, AC-AISVC-49]
- 新增 RAG 实验流式输出 SSE [AC-AISVC-48]
- 支持指定 LLM 提供者 [AC-AISVC-50]
- 更新 OpenAPI 契约添加 LLM 管理接口
- 更新前后端规范文档 v0.4.0 迭代
2026-02-24 17:25:53 +00:00
|
|
|
"openpyxl>=3.1.0",
|
|
|
|
|
"python-docx>=1.1.0",
|
|
|
|
|
"pymupdf>=1.23.0",
|
|
|
|
|
"pdfplumber>=0.10.0",
|
2026-02-25 18:29:56 +00:00
|
|
|
"python-multipart>=0.0.6",
|
2026-02-24 05:19:38 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
|
dev = [
|
|
|
|
|
"pytest>=7.4.0",
|
|
|
|
|
"pytest-asyncio>=0.23.0",
|
|
|
|
|
"pytest-cov>=4.1.0",
|
|
|
|
|
"httpx>=0.26.0",
|
|
|
|
|
"ruff>=0.1.0",
|
|
|
|
|
"mypy>=1.8.0",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["app"]
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
line-length = 120
|
|
|
|
|
target-version = "py310"
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = ["E", "F", "I", "N", "W", "UP"]
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
|
python_version = "3.10"
|
|
|
|
|
strict = true
|
|
|
|
|
warn_return_any = true
|
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
asyncio_mode = "auto"
|
|
|
|
|
testpaths = ["tests"]
|