Expose SDXL formatter graph inputs
This commit is contained in:
+7
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user