zhangqian 1 рік тому
батько
коміт
f80470593b
1 змінених файлів з 1 додано та 1 видалено
  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)
                       ):