Closed jelling closed 1 month ago
You're right, we didn't consider this scenario. Can you share more about your use case? What kind of ComfyUI custom nodes are you using?
I'm guessing either:
More details would help us figure out the best way to implement this feature. Your workaround looks good for now - we'll think about how to make this more flexible while keeping things backwards compatible.
I've added a small update with a custom resolver; hopefully, this will cover your needs. If you encounter any issues, feel free to provide further feedback.
Additionally, I've included a brief explanation in the README: https://github.com/StableCanvas/comfyui-client?tab=readme-ov-file#custom-resolver
Thanks for the quick fix. My use case is pretty simple in that I'm outputting videos. But I'm also starting to see people using Comfy for multi-agent LLM workflows.
I spoke too soon. I see the fix for the enqueue function but I'm using invoke_polling
:
const res = await wf.invoke_polling(comfyClient());
okey, thx feedback
added https://github.com/StableCanvas/comfyui-client/commit/a4c559bb28b3cf13f2f77b48205dc4adeb3f25a6
I've added the workflow functionality and updated the README.
Currently,
ComfyUIApiClient
callsgetPromptImageResult
at the end of the inference. But Comfy can be used for non-image inference as well as image inference.Feature request: support optional generic type for return type.
My hacky temporary workaround: