Skip to content

Add FLUX.2 API custom node for Floyo - #1

Open
ritik-devsecops wants to merge 1 commit into
mainfrom
codex/create-custom-node-for-flux2-pro
Open

Add FLUX.2 API custom node for Floyo#1
ritik-devsecops wants to merge 1 commit into
mainfrom
codex/create-custom-node-for-flux2-pro

Conversation

@ritik-devsecops

Copy link
Copy Markdown
Owner

Summary

  • ensure the Floyo FLUX.2 node package exposes node mappings via init.py for auto-discovery when moved into ComfyUI
  • clarify installation instructions to keep the init.py and flux2_node.py pairing intact for loading
  • retain configurable defaults, model selection, and polling guidance documented in the README

Testing

  • not run (not requested)

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +138 to +142
configured_model = config.get("api", "model", fallback=model)
effective_model = configured_model if configured_model in {"flux-2-pro", "flux-2-flex"} else model

configured_interval = config.getfloat("api", "poll_interval", fallback=poll_interval)
configured_timeout = config.getint("api", "max_wait_seconds", fallback=max_wait_seconds)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allow UI overrides when config file is present

The node inputs for model, poll_interval, and max_wait_seconds are ignored whenever custom_nodes/floyo_flux2_api_node/config.ini exists, because _load_config always replaces the runtime arguments with the config values. Since the repo ships with that file populated, selecting flux-2-flex or changing polling cadence in the UI has no effect unless users manually edit the config file, which defeats the documented purpose of those inputs. Please treat config entries as defaults and honor explicit node selections.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant