From 4e5b15ed42770c800847d1e9a40e931d6eb2d5f9 Mon Sep 17 00:00:00 2001 From: aisensiy Date: Wed, 27 Sep 2023 17:41:54 +0800 Subject: [PATCH] Remove unnecessary var --- lmdeploy/serve/openai/api_server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lmdeploy/serve/openai/api_server.py b/lmdeploy/serve/openai/api_server.py index 4294b2e2ea..554e40522c 100644 --- a/lmdeploy/serve/openai/api_server.py +++ b/lmdeploy/serve/openai/api_server.py @@ -30,11 +30,9 @@ class VariableInterface: app = FastAPI(docs_url='/') -origins = ['*'] - app.add_middleware( CORSMiddleware, - allow_origins=origins, + allow_origins=['*'], allow_credentials=True, allow_methods=['*'], allow_headers=['*'],