move environ into sglang.srt to avoid break SRT auto sync. (#10791)
This commit is contained in:
@@ -195,7 +195,7 @@ _warned_bool_env_var_keys = set()
|
||||
|
||||
|
||||
def get_bool_env_var(name: str, default: str = "false") -> bool:
|
||||
# FIXME: move your environment variable to sglang.environ
|
||||
# FIXME: move your environment variable to sglang.srt.environ
|
||||
value = os.getenv(name, default)
|
||||
value = value.lower()
|
||||
|
||||
@@ -213,7 +213,7 @@ def get_bool_env_var(name: str, default: str = "false") -> bool:
|
||||
|
||||
|
||||
def get_int_env_var(name: str, default: int = 0) -> int:
|
||||
# FIXME: move your environment variable to sglang.environ
|
||||
# FIXME: move your environment variable to sglang.srt.environ
|
||||
value = os.getenv(name)
|
||||
if value is None or not value.strip():
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user