* Fix in container processing.

This commit is contained in:
Antonio Cordero Balcazar
2026-05-07 21:50:28 +02:00
parent db68347bcd
commit 83e88e41e9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2108,7 +2108,7 @@ class TreeProcessor(lark.visitors.Interpreter):
options = wildcard.unprocessed_choices[0]
container = options.get("container", None)
container_kind = "specified"
if container is None or not isinstance(container, str):
if container is None:
container_kind = "assembled"
has_separator = "separator" in options
has_prefix = "prefix" in options
@@ -2130,7 +2130,7 @@ class TreeProcessor(lark.visitors.Interpreter):
options.pop("prefix", None)
options.pop("suffix", None)
options.pop("container", None)
if container is not None:
if container is not None and isinstance(container, str):
try:
options["container"] = parse_prompt(
self.state, "choicevalue", container, self.state.parsers["choicevalue"], True
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "sd-webui-prompt-postprocessor"
description = "Stable Diffusion WebUI & ComfyUI extension to post-process the prompt, including sending content from the prompt to the negative prompt and wildcards."
version = "3.1.0"
version = "3.1.1"
license = { file = "LICENSE.txt" }
dependencies = ["lark", "numpy", "pyyaml", "pydantic"]