From f80470593bc36716707fd391a2760e513e95d51d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 18 十月 2024 15:25:46 +0800
Subject: [PATCH] chat_id非必传
---
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