From 7c8baed1ff39947472a03edcf9bca154f7374a37 Mon Sep 17 00:00:00 2001 From: yinpeng <2291314224@qq.com> Date: Sun, 15 Dec 2024 21:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4list=5Fmodels=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9A=84=E6=8E=88=E6=9D=83=E9=AA=8C=E8=AF=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E7=AE=80=E5=8C=96=E5=8F=82=E6=95=B0=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/routes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/api/routes.py b/app/api/routes.py index e87c8da..b05fdb3 100644 --- a/app/api/routes.py +++ b/app/api/routes.py @@ -24,10 +24,7 @@ embedding_service = EmbeddingService(settings.BASE_URL) @router.get("/v1/models") @router.get("/hf/v1/models") -async def list_models( - authorization: str = Header(None), - token: str = Depends(security_service.verify_authorization), -): +async def list_models(): logger.info("Handling models list request") api_key = await key_manager.get_next_working_key() logger.info(f"Using API key: {api_key}")