1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add optional deprecated/experimental flag to node class (#4506)

* Add optional deprecated flag to node class

* nit

* Add experimental flag
This commit is contained in:
Chenlei Hu
2024-08-21 00:01:34 -04:00
committed by GitHub
parent bb50e69839
commit f257fc999f
2 changed files with 14 additions and 3 deletions

View File

@@ -442,6 +442,11 @@ class PromptServer():
if hasattr(obj_class, 'OUTPUT_TOOLTIPS'):
info['output_tooltips'] = obj_class.OUTPUT_TOOLTIPS
if getattr(obj_class, "DEPRECATED", False):
info['deprecated'] = True
if getattr(obj_class, "EXPERIMENTAL", False):
info['experimental'] = True
return info
@routes.get("/object_info")