Skip to content

Add support for dynamic prompts to WildcardAndLoraSyntaxProcessor node#63

Open
gshawn3 wants to merge 1 commit intobash-j:mainfrom
gshawn3:add-dynamic-prompts-to-wildcardandlorasyntaxprocessor
Open

Add support for dynamic prompts to WildcardAndLoraSyntaxProcessor node#63
gshawn3 wants to merge 1 commit intobash-j:mainfrom
gshawn3:add-dynamic-prompts-to-wildcardandlorasyntaxprocessor

Conversation

@gshawn3
Copy link

@gshawn3 gshawn3 commented Nov 6, 2025

Add bracket choice support to WildcardAndLoraSyntaxProcessor

Fixes #62.

Fixes an issue where bracket choices like {blue|red} in prompts were not randomized in WildcardAndLoraSyntaxProcessor.

Changes

  • Added process_wildcard_syntax() to the process() method to evaluate bracket choices.
  • Processes bracket choices after wildcard file expansion so wildcards can contain bracket choices.
  • Uses the original seed so selections are deterministic and repeatable when the seed doesn't change.

Behavior

Prompts with bracket syntax (e.g., "a {blue|red} car") now randomly select one option based on the seed, matching the behavior of other wildcard processors.

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.

WildcardAndLoraSyntaxProcessor node does not support dynamic prompt syntax

1 participant