From dfde8e31559df1be52b5062bbc54f688beab09ca Mon Sep 17 00:00:00 2001 From: GenorTG Date: Tue, 10 Nov 2026 14:19:17 +0100 Subject: [PATCH] Drop anal from negative on anal actions --- h3_generate.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/h3_generate.py b/h3_generate.py index b2d608c..e0157f1 100644 --- a/h3_generate.py +++ b/h3_generate.py @@ -699,7 +699,7 @@ class PROMPTFORGE_H3Generate: settings, text, "inputs" if (pictures or context is not None) else "text_only", preset, seed + attempt * 1000, story["writer_max_tokens"], story["writer_creativity"], story["writer_top_p"], story["writer_top_k"], 1, story["writer_repetition_penalty"], story["writer_presence_penalty"], "", video_seconds=max(1, round(seconds + prefix / FPS)), image=refs[0], image2=refs[1], image3=refs[2], video=context if mode == "reference video" else None, frame_count=6 - 2 * attempt, - negative_prompt=story["negative_prompt"], auto_retry=story["check_prompts"], dialogue=story["dialogue"], dialogue_language=package.DIALOGUE_AUTO if story["dialogue_language"] == h3_settings.DIALOGUE_AUTO else story["dialogue_language"], + negative_prompt=(re.sub(r"(?i)\banal\b,?\s*", "", story["negative_prompt"]) if action_name and story.get("penetration") == "anal" else story["negative_prompt"]), auto_retry=story["check_prompts"], dialogue=story["dialogue"], dialogue_language=package.DIALOGUE_AUTO if story["dialogue_language"] == h3_settings.DIALOGUE_AUTO else story["dialogue_language"], dialogue_language_other=story["dialogue_language_other"], continuation=continuation, context_video=context if mode == "anchor tail" else None, rules=h3_actions.RULES if story.get("action") and h3_actions.RULES else "") self._request_preview(unique_id, index, total, seconds, seed + attempt * 1000, writer, story, preset, pictures, context, enhancer.last_request) diff --git a/pyproject.toml b/pyproject.toml index 6f0b35d..556bf04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI-PromptForge" description = "ComfyUI prompt enhancement suite: model/config node with GPU-aware auto settings, prompt enhancer with a preset catalog, and a standalone config finder." -version = "1.28.27" +version = "1.28.28" license = { file = "LICENSE" } dependencies = [ "transformers",