The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
[Partner Nodes] feat(client): send ComfyUI Job Id in request headers (#14934)
Alexis Rolland87d23b817651
diff --git a/comfy_api_nodes/util/_helpers.py b/comfy_api_nodes/util/_helpers.pyindex acab10d95..ddfb3b65c 100644--- a/comfy_api_nodes/util/_helpers.py+++ b/comfy_api_nodes/util/_helpers.py@@ -15,6 +15,7 @@ from comfy.comfy_api_env import normalize_comfy_api_basefrom comfy.deploy_environment import get_deploy_environmentfrom comfy.model_management import processing_interruptedfrom comfy_api.latest import IO+from comfy_execution.utils import get_executing_contextfrom comfyui_version import __version__ as comfyui_versionfrom .common_exceptions import ProcessingInterrupted@@ -57,12 +58,16 @@ def get_comfy_api_headers(node_cls: type[IO.ComfyNode]) -> dict[str, str]:relative/cloud URLs resolved against ``default_base_url()``; because the resultincludes auth, callers must not attach it to arbitrary absolute/presigned URLs."""- return {+ headers = {**get_auth_header(node_cls),"Comfy-Env": get_deploy_environment(),"Comfy-Usage-Source": get_usage_source(node_cls),"Comfy-Core-Version": comfyui_version,}+ ctx = get_executing_context()+ if ctx is not None:+ headers["Comfy-Job-Id"] = ctx.prompt_id+ return headersdef default_base_url() -> str: