zhangqian
2024-10-18 f80470593bc36716707fd391a2760e513e95d51d
chat_id非必传
1个文件已修改
2 ■■■ 已修改文件
app/api/files.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)
                      ):