From 22b7aa6e82b852eb8f5cbde96841b2d3a9cd20f8 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 25 Jun 2026 13:43:19 +0200 Subject: [PATCH] Expose SDXL formatter graph inputs --- __init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 9f65bd1..97d367b 100644 --- a/__init__.py +++ b/__init__.py @@ -52,6 +52,7 @@ COMMON_INPUT_TOOLTIPS = { "hardcore_position_config": "Hardcore action/position config. Chain Position Pool into Action Filter, then into the generator.", "metadata_json": "Structured metadata from an SxCP generator. Prefer this over raw prompt text for formatters and profile save.", "source_text": "Raw prompt, caption, or metadata JSON depending on input_hint.", + "source_text_input": "Optional linked raw prompt/caption input. When connected, it overrides the source_text widget.", "input_hint": "Tells the node how to interpret source_text. auto tries metadata first.", "target": "For dual prompts, choose which side to output as the main Krea prompt.", "detail_level": "Controls how much detail the rewriter keeps. concise is shorter, dense keeps more clauses.", @@ -2218,8 +2219,9 @@ class SxCPSDXLFormatter: "nude_weight": ("FLOAT", {"default": 1.29, "min": 0.1, "max": 3.0, "step": 0.01}), }, "optional": { - "metadata_json": ("STRING", {"default": "", "multiline": True}), - "negative_prompt": ("STRING", {"default": "", "multiline": True}), + "source_text_input": ("STRING", {"forceInput": True}), + "metadata_json": ("STRING", {"forceInput": True}), + "negative_prompt": ("STRING", {"forceInput": True}), "custom_style": ("STRING", {"default": "", "multiline": True}), "custom_quality": ("STRING", {"default": "", "multiline": True}), "extra_positive": ("STRING", {"default": "", "multiline": True}), @@ -2251,6 +2253,7 @@ class SxCPSDXLFormatter: prepend_trigger_to_prompt, preserve_trigger, nude_weight, + source_text_input="", metadata_json="", negative_prompt="", custom_style="", @@ -2258,8 +2261,9 @@ class SxCPSDXLFormatter: extra_positive="", extra_negative="", ): + active_source_text = source_text_input or source_text or "" row = format_sdxl_prompt( - source_text=source_text or "", + source_text=active_source_text, metadata_json=metadata_json or "", negative_prompt=negative_prompt or "", input_hint=input_hint,