Remove env var warnings for release (#11262)

This commit is contained in:
Lianmin Zheng
2025-10-06 10:09:17 -07:00
committed by GitHub
parent 5ee777c98f
commit eb30b888db
3 changed files with 1 additions and 26 deletions

View File

@@ -7,23 +7,9 @@ from sglang.srt.entrypoints.http_server import launch_server
from sglang.srt.server_args import prepare_server_args
from sglang.srt.utils import kill_process_tree
MOVE_ENVS_WARN = """
########################################################################
# For contributors and developers: #
# Please move environment variable definitions to sglang.srt.environ #
# using the following pattern: #
# SGLANG_XXX = EnvBool(False) #
# #
########################################################################
"""
if __name__ == "__main__":
server_args = prepare_server_args(sys.argv[1:])
from sglang.srt.server_args import print_deprecated_warning
print_deprecated_warning(MOVE_ENVS_WARN)
try:
launch_server(server_args)
finally: