Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Expose deploy_environment in /system_stats (#14402)

Robin Huangb664349ae72c
diff --git a/server.py b/server.py
index ccc92e5ab..6b0029adf 100644
--- a/server.py
+++ b/server.py
@@ -27,6 +27,7 @@ import logging
import mimetypes
from comfy.cli_args import args
+from comfy.deploy_environment import get_deploy_environment
import comfy.utils
import comfy.model_management
from comfy_api import feature_flags
@@ -690,6 +691,7 @@ 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",
+ "deploy_environment": get_deploy_environment(),
"argv": sys.argv
},
"devices": device_entries