From 8e85ef5796e901a4860ab0d39961e9b343fd30e0 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期三, 23 十月 2024 10:48:18 +0800
Subject: [PATCH] 指令由 {"action": "process"} 改为 '合并Excel文件' 收到的数据格式与报告生成返回一致

---
 app/api/files.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/api/files.py b/app/api/files.py
index eb880a6..5da2cc4 100644
--- a/app/api/files.py
+++ b/app/api/files.py
@@ -16,7 +16,7 @@
 @router.post("/upload/{agent_id}", response_model=Response)
 async def upload_file(agent_id: str,
                       file: UploadFile = File(...),
-                      chat_id: str = Query(..., description="The ID of the chat"),
+                      chat_id: str = Query(None, description="The ID of the chat"),
                       db: Session = Depends(get_db),
                       current_user: UserModel = Depends(get_current_user)
                       ):

--
Gitblit v1.8.0