Fix enable signup env

This commit is contained in:
Han Cen
2024-03-02 15:38:14 +08:00
committed by GitHub
parent 6c70d0f770
commit a12b5ffab3

View File

@@ -226,7 +226,7 @@ if OPENAI_API_BASE_URL == "":
# WEBUI
####################################
ENABLE_SIGNUP = os.environ.get("ENABLE_SIGNUP", True)
ENABLE_SIGNUP = os.environ.get("ENABLE_SIGNUP", "True").lower() == "true"
DEFAULT_MODELS = os.environ.get("DEFAULT_MODELS", None)