Expose Krea formatter metadata socket

This commit is contained in:
2026-06-27 12:56:30 +02:00
parent 811ff86f72
commit 6ff3b0cbd5
3 changed files with 14 additions and 6 deletions
+5
View File
@@ -5799,6 +5799,11 @@ def smoke_node_formatter_registration() -> None:
krea_inputs = krea_node.INPUT_TYPES().get("required") or {}
_expect("source_text" in krea_inputs, "Krea2 Formatter lost source_text input")
_expect("tooltip" in krea_inputs["source_text"][1], "Krea2 Formatter tooltip injection missing")
krea_optional = krea_node.INPUT_TYPES().get("optional") or {}
_expect("source_text_input" in krea_optional, "Krea2 Formatter lost connectable source_text_input")
_expect("metadata_json" in krea_optional, "Krea2 Formatter lost metadata_json input")
_expect(krea_optional["metadata_json"][1].get("forceInput") is True, "Krea2 Formatter metadata_json should be connectable")
_expect(krea_optional["negative_prompt"][1].get("forceInput") is True, "Krea2 Formatter negative_prompt should be connectable")
caption, caption_method = sxcp_nodes.NODE_CLASS_MAPPINGS["SxCPCaptionNaturalizer"]().build(
"A woman standing by a window, best quality",