Add location helper reference outputs

This commit is contained in:
2026-09-07 07:46:24 +00:00
parent dd8ef84379
commit a51141cb26
3 changed files with 71 additions and 7 deletions
+22 -3
View File
@@ -2164,8 +2164,8 @@ class DumasLocationHelperNode:
"Build a general location reference prompt from two IMAGE sockets plus "
"simple environment fields, while passing both images through unchanged."
)
RETURN_TYPES = ("IMAGE", "IMAGE", "STRING")
RETURN_NAMES = ("image1", "image2", "reference_prompt")
RETURN_TYPES = ("IMAGE", "IMAGE", "STRING", _REFERENCE_TYPE, _REFERENCE_TYPE)
RETURN_NAMES = ("image1", "image2", "reference_prompt", "reference1", "reference2")
FUNCTION = "build_location_text"
CATEGORY = "Dumas/MiniMax"
@@ -2253,7 +2253,26 @@ class DumasLocationHelperNode:
description,
general,
)
return (image1, image2, text)
common = {
"kind": "location",
"explicit_id": location_id,
"name": name,
"aliases": alias,
"description": description,
"general": general,
"facts": {},
}
reference1 = make_reference(
image=image1,
summary="Primary location reference.",
**common,
)
reference2 = make_reference(
image=image2,
summary="Secondary location reference.",
**common,
)
return (image1, image2, text, reference1, reference2)
class DumasCharacterReferenceNode: