后端完成异步和rag设置

This commit is contained in:
2026-03-26 23:41:03 +08:00
parent 5bcad4a5fa
commit 6b88e971e8
14 changed files with 741 additions and 108 deletions

View File

@@ -4,6 +4,7 @@
提供模板上传、解析和填写功能
"""
import io
import logging
from typing import List, Optional
from fastapi import APIRouter, File, HTTPException, Query, UploadFile
@@ -222,7 +223,3 @@ async def export_filled_template(
except Exception as e:
logger.error(f"导出失败: {str(e)}")
raise HTTPException(status_code=500, detail=f"导出失败: {str(e)}")
# ==================== 需要添加的 import ====================
import logging