rgthree-comfy icon indicating copy to clipboard operation
rgthree-comfy copied to clipboard

Bug: FlexibleOptionalInputType is breaking "object_info" API

Open morgan55555 opened this issue 1 year ago • 1 comments

ComfyUI has an API for other UI or systems. There is API page "comfyui_ip:8188/object_info", which used to get nodes inputs/outputs.

And since "Allow infinite context inputs for Context Switch, Merge, and their Big nodes. Fixes #253", API is broken, reporting "input": {"required": {}, "optional": {}} for all of affected nodes.

It's should somehow fill this fields with default values for API users.

morgan55555 avatar Jul 16 '24 11:07 morgan55555

Hmmm... ComfyUI doesn't have a way to convey this object because it does work closely with the client code. This is certainly intentional since rgthree-comfy is a UI-focused node suite and the UI code is important.

For instance, there's practically no way to use the Power Lora Loader without client-side code creating the Lora JSON data. And while Context Switch isn't as complex in its inputs, it does rely on the client node code to establish the inputs.

...but let me think on this and if there's a way to solve this more seamlessly.

rgthree avatar Jul 17 '24 01:07 rgthree