Comfy-Org / Comfy-Org/ComfyUI

isApi python variable?

Open
#9,766 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

Hello, I'm wanting to create a custom switch node that; depending on if the network is processed via the comfuUI UI or the comfyUI api will swich between it's inputs.

I'm having trouble finding a reference to a python variable I could access to decern this state. Is anyone farmiliar with such a python variable within the comfyui code?

Contributor guide

Open the contributing guide

Research direction

The issue names no file or test. Start by locating the Python paths handling UI and API processing, then check whether custom nodes receive that context; done means identifying an existing variable or documenting the missing capability.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.