4 Commits

Author SHA1 Message Date
Denys Smirnov
da4cb7125a Save widget names in the workflow JSON
Currently, any external tooling will have a hard time converting workflow JSON files to the API format.

The main reason is that widgets_values is an array and mapping values from that array to widget names requires loading node types from the object_info endpoint as well. However, object_info depends on the plugins installed and thus may miss some of the nodes in the workflow.

This change adds widget_names to the JSON, allowing direct conversion of workflow files to API format without prior knowledge of all node types. This could also help with compatibility in the future.

Resolves #2275
2024-06-02 14:04:59 +03:00
melMass
5190aa284d fix: ⚡️ small type fix
getCustomWidgets expects a plain record and not an array of records
2023-07-21 13:19:05 +02:00
Alex "mcmonkey" Goodwin
5797ff89b0 use relative paths for all web connections
This enables local reverse-proxies to host ComfyUI on a path, eg "http://example.com/ComfyUI/" in such a way that at least everything I tested works. Without this patch, proxying ComfyUI in this way will yield errors.
2023-07-10 02:09:03 -07:00
pythongosssss
eb4035c8bd Adds jsdoc for better dev experience 2023-04-15 21:40:39 +01:00