feat: LLM 论文图书馆 — 初始提交

- FastAPI 后端: REST API + Bearer Token 鉴权 + PDF 代理
- 180 篇论文数据 (data/papers.json): 9 模块、32 子领域
- 前端: 数据驱动、卡片径向渐变光效、PDF 页面内阅读
- 底部状态栏: arXiv/HF 连通性检测
- PDF 加载: arXiv 优先(5s超时) → HK 本地兜底
- Docker 化部署 (Dockerfile + start.sh + nginx.conf)
- arXiv + HF 批量下载器 (api/downloader.py)
This commit is contained in:
2026-06-02 10:25:14 +00:00
commit f0ff62e082
21 changed files with 4042 additions and 0 deletions

17
.env.example Normal file
View File

@@ -0,0 +1,17 @@
# LLM 论文图书馆 — 环境配置
# 复制此文件为 .env.local 并填入实际值
# API 管理密钥 (用于 POST/PUT/DELETE 鉴权)
API_KEY=change-me-to-a-strong-random-string
# 服务端口
PORT=8000
# PDF 存储路径
PAPER_DIR=papers
# 日志级别
LOG_LEVEL=info
# CORS 允许的域名 (逗号分隔)
CORS_ORIGINS=*