mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-09 02:47:15 +08:00
switch to boolean flag and use original node name for id
This commit is contained in:
parent
06819aa865
commit
5327cc8bbb
@ -229,8 +229,8 @@ class ComfyNodeABC(ABC):
|
||||
"""Flags a node as experimental, informing users that it may change or not work as expected."""
|
||||
DEPRECATED: bool
|
||||
"""Flags a node as deprecated, indicating to users that they should find alternatives to this node."""
|
||||
COMFY_API_NODE_NAME: Optional[str]
|
||||
"""If the node is an API node, this is the name used to identify it."""
|
||||
API_NODE: bool
|
||||
"""Flags a node as an API node."""
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
|
||||
@ -581,8 +581,8 @@ class PromptServer():
|
||||
if getattr(obj_class, "EXPERIMENTAL", False):
|
||||
info['experimental'] = True
|
||||
|
||||
if hasattr(obj_class, 'COMFY_API_NODE_NAME'):
|
||||
info['comfy_api_node_name'] = obj_class.COMFY_API_NODE_NAME
|
||||
if hasattr(obj_class, 'API_NODE'):
|
||||
info['api_node'] = obj_class.API_NODE
|
||||
return info
|
||||
|
||||
@routes.get("/object_info")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user