From 06adf92f60d7c38e99c02b0d1ae71ca0f0fff153 Mon Sep 17 00:00:00 2001 From: snomiao Date: Mon, 27 Apr 2026 07:27:23 +0900 Subject: [PATCH] feat(server): expose comfy_api_base in system_stats response Add system.comfy_api_base to /api/system_stats so clients (especially the static preview frontend) can read the configured cloud API base URL directly instead of parsing it out of argv. The value is always present: it defaults to https://api.comfy.org when --comfy-api-base is not specified, matching the existing default in cli_args.py. --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 881da8e66..2ee92c4b9 100644 --- a/server.py +++ b/server.py @@ -668,7 +668,8 @@ class PromptServer(): "python_version": sys.version, "pytorch_version": comfy.model_management.torch_version, "embedded_python": os.path.split(os.path.split(sys.executable)[0])[1] == "python_embeded", - "argv": sys.argv + "argv": sys.argv, + "comfy_api_base": args.comfy_api_base }, "devices": [ {