Explorar o código

chat_id非必传

zhangqian hai 1 ano
pai
achega
f80470593b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/api/files.py

+ 1 - 1
app/api/files.py

@@ -16,7 +16,7 @@ router = APIRouter()
 @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)
                       ):