mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-17 14:17:05 +08:00
Add experimental flag
This commit is contained in:
parent
6364c19e17
commit
10e6e21814
@ -26,6 +26,9 @@ class Example:
|
|||||||
DEPRECATED (`bool`):
|
DEPRECATED (`bool`):
|
||||||
Indicates whether the node is deprecated. Deprecated nodes are hidden by default in the UI, but remain
|
Indicates whether the node is deprecated. Deprecated nodes are hidden by default in the UI, but remain
|
||||||
functional in existing workflows that use them.
|
functional in existing workflows that use them.
|
||||||
|
EXPERIMENTAL (`bool`):
|
||||||
|
Indicates whether the node is experimental. Experimental nodes are marked as such in the UI and may be subject to
|
||||||
|
significant changes or removal in future versions. Use with caution in production workflows.
|
||||||
execute(s) -> tuple || None:
|
execute(s) -> tuple || None:
|
||||||
The entry point method. The name of this method must be the same as the value of property `FUNCTION`.
|
The entry point method. The name of this method must be the same as the value of property `FUNCTION`.
|
||||||
For example, if `FUNCTION = "execute"` then this method's name must be `execute`, if `FUNCTION = "foo"` then it must be `foo`.
|
For example, if `FUNCTION = "execute"` then this method's name must be `execute`, if `FUNCTION = "foo"` then it must be `foo`.
|
||||||
|
|||||||
@ -445,6 +445,8 @@ class PromptServer():
|
|||||||
|
|
||||||
if getattr(obj_class, "DEPRECATED", False):
|
if getattr(obj_class, "DEPRECATED", False):
|
||||||
info['deprecated'] = True
|
info['deprecated'] = True
|
||||||
|
if getattr(obj_class, "EXPERIMENTAL", False):
|
||||||
|
info['experimental'] = True
|
||||||
return info
|
return info
|
||||||
|
|
||||||
@routes.get("/object_info")
|
@routes.get("/object_info")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user