From 6202db458678153934fb4a31a041c58764a69138 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 18 十月 2024 22:59:51 +0800 Subject: [PATCH] 增加文件下载转发接口,把毕昇返回的文件地址改成我们的下载地址 --- app/api/auth.py | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/api/auth.py b/app/api/auth.py index feef6d9..588d7c8 100644 --- a/app/api/auth.py +++ b/app/api/auth.py @@ -1,9 +1,7 @@ -from fastapi import APIRouter, Depends, Request -from fastapi.security import OAuth2PasswordBearer -from passlib.context import CryptContext +from fastapi import APIRouter, Depends from sqlalchemy.orm import Session -from app.api import Response, pwd_context, oauth2_scheme, get_current_user +from app.api import Response, pwd_context from app.config.config import settings from app.models.base_model import get_db from app.models.token_model import upsert_token @@ -14,8 +12,6 @@ from app.service.ragflow import RagflowService router = APIRouter() - - @router.post("/register", response_model=Response) -- Gitblit v1.8.0