ljleb / prompt-fusion-extension

auto1111 webui extension for all sorts of prompt interpolations!
MIT License
264 stars 16 forks source link

Prompt variable definitions don't stop at the first newline character #29

Closed PladsElsker closed 1 year ago

PladsElsker commented 1 year ago

For instance, if I write the following prompt, then the rest of the prompt is used as the variable definition scope, and not just what's defined on the line:

$label = prompt

this is my $label

It works if I add parentheses around it, though (but they are still parsed as weights):

$label = (prompt:1)

this is my $label
ljleb commented 1 year ago

I'll do it along with #16. This will also allow to use variables in places that expect weights or sampler step indices.