Skip to content

fix(diffusers): pass text prompts by keyword - #11836

Open
cananoo wants to merge 1 commit into
mudler:masterfrom
cananoo:fix/flux2-prompt-11833
Open

fix(diffusers): pass text prompts by keyword#11836
cananoo wants to merge 1 commit into
mudler:masterfrom
cananoo:fix/flux2-prompt-11833

Conversation

@cananoo

@cananoo cananoo commented Sep 2, 2026

Copy link
Copy Markdown

Fixes #11833

Pass text-to-image prompts using the named prompt argument. FLUX.2 pipelines accept image as their first positional argument, so the previous call left prompt unset and failed generation.

Validation: python -m compileall -q backend.py test.py; ruff check backend.py test.py --select F821; git diff --check. The focused pytest cannot run in this Windows environment because torch and diffusers are not installed. The added regression test models the FLUX.2-compatible signature. AI assistance is attributed in the commit trailer.

FLUX.2 pipelines accept image as their first positional argument, so passing a text prompt positionally leaves prompt unset and fails generation. Use the named prompt parameter and cover the FLUX.2-compatible signature with a focused regression test.

Assisted-by: Codex:gpt-5
Signed-off-by: pengmin <minpeng@semigraph.com>
@cananoo
cananoo force-pushed the fix/flux2-prompt-11833 branch from e6c3b12 to a8c431c Compare September 2, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diffusers backend: FLUX.2 pipelines fail with "Provide either prompt or prompt_embeds" because the prompt is passed positionally

1 participant