Add FLUX.2 API custom node for Floyo - #1
Conversation
There was a problem hiding this comment.
💡 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".
| 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) |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Testing
Codex Task