From fa2bf082c25af53b5e13b08e9f4322e0c52e9f30 Mon Sep 17 00:00:00 2001 From: Lucas Armand Date: Fri, 12 Dec 2025 14:47:29 -0800 Subject: [PATCH] only require HF_Token on backend --- start_server.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/start_server.sh b/start_server.sh index 0ba63bd..9522102 100755 --- a/start_server.sh +++ b/start_server.sh @@ -46,9 +46,7 @@ JSON exit 1 } -[ -z "$BACKEND" ] && report_error_and_exit "BACKEND must be set!" -[ -z "$MODEL_LOG" ] && report_error_and_exit "MODEL_LOG must be set!" -[ -z "$HF_TOKEN" ] && report_error_and_exit "HF_TOKEN must be set!" +[ -n "$BACKEND" ] && [ -z "$HF_TOKEN" ] && report_error_and_exit "HF_TOKEN must be set when BACKEND is set!" [ -z "$CONTAINER_ID" ] && report_error_and_exit "CONTAINER_ID must be set!" [ "$BACKEND" = "comfyui" ] && [ -z "$COMFY_MODEL" ] && report_error_and_exit "For comfyui backends, COMFY_MODEL must be set!"