fix: implement native ComfyUI POST interface payload#18
Open
Binkcn wants to merge 2 commits intodevsapp:capfrom
Open
fix: implement native ComfyUI POST interface payload#18Binkcn wants to merge 2 commits intodevsapp:capfrom
Binkcn wants to merge 2 commits intodevsapp:capfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The latest version of ComfyUI (see: https://github.com/comfyanonymous/ComfyUI/releases/tag/v0.3.57) supports calling external closed-source model APIs. In my project, I used Google's Gemini 2.5 Flash model, but invoking closed-source models requires logging into a ComfyUI account and using account credits for payment.
The latest ComfyUI version supports attaching an extra_data parameter when submitting a prompt to include api_key_comfy_org (see: https://docs.comfy.org/development/comfyui-server/api-key-integration#python-example).
The current agent implementation only passes client-submitted data as the prompt, unable to include a valid extra_data parameter. Therefore, following the native ComfyUI /prompt interface, the entire client-submitted data is passed as the payload to ComfyUI for processing.
Warning: This change will alter the parameter structure of the existing interface, potentially causing business functionality to break!