ComfyUI/comfy_api_nodes/util
Jedrzej Kosinski e7fbb3c2db Add deploy environment header to partner node API calls
Read a .comfy_environment file from the ComfyUI base directory to
determine the deployment environment (e.g. standalone, portable, desktop).
Defaults to 'local_git' when the file is absent.

The value is sent as an X-Comfy-Deploy-Env header on all requests to
api.comfy.org, allowing the API to differentiate between environment types.

The .comfy_environment file is gitignored so launchers/installers can
write it without affecting the repository.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d939e-6b4d-738b-8d1a-ac7cbf6736a4
2026-04-15 20:13:40 -07:00
..
__init__.py [API Nodes] add ElevenLabs nodes (#12207) 2026-02-19 22:12:28 -08:00
_helpers.py fix(api-nodes-vidu): preserve percent-encoding for signed URLs (#11564) 2025-12-30 20:12:38 -08:00
client.py Add deploy environment header to partner node API calls 2026-04-15 20:13:40 -07:00
common_exceptions.py feat(api-nodes): network client v2: async ops, cancellation, downloads, refactor (#10390) 2025-10-23 22:37:16 -07:00
conversions.py feat(api-nodes): add Bria RMBG nodes (#12465) 2026-02-15 17:22:30 -08:00
download_helpers.py fix(api-nodes): add separate retry budget for 429 rate limit responses (#12421) 2026-02-12 01:38:51 -08:00
request_logger.py fix(api-nodes): add separate retry budget for 429 rate limit responses (#12421) 2026-02-12 01:38:51 -08:00
upload_helpers.py feat(api-nodes-Tencent): add ModelTo3DUV, 3DTextureEdit, 3DParts nodes (#12428) 2026-02-15 05:33:18 -08:00
validation_utils.py [API Nodes]: fixes and refactor (#11104) 2025-12-04 14:05:28 -08:00