Skip to content

Commit 96a5774

Browse files
authored
[serve] re-enable tests (#40717)
run tests
1 parent c76387e commit 96a5774

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ def run(self):
364364
+ extras["retrieval"]
365365
+ extras["modelcreation"]
366366
+ extras["mistral-common"]
367+
+ extras["serving"]
367368
)
368369

369370
extras["deepspeed-testing"] = extras["deepspeed"] + extras["testing"] + extras["optuna"] + extras["sentencepiece"]

src/transformers/commands/serving.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,6 @@ async def lifespan(app: FastAPI):
687687
logger.warning_once(
688688
"CORS allow origin is set to `*`. This is not recommended for production environments."
689689
)
690-
else:
691-
logger.warning_once(
692-
"Some apps may require CORS. Consider launching the server with `--enable-cors` if you see errors."
693-
)
694690

695691
@app.post("/v1/chat/completions")
696692
def chat_completion(request: dict):

0 commit comments

Comments
 (0)