Add group mode for TriggerWord Toggle

This commit is contained in:
Will Miao
2025-03-11 11:12:37 +08:00
parent c48da5300e
commit f48b954fb7
3 changed files with 82 additions and 28 deletions

View File

@@ -72,6 +72,7 @@ class LoraManagerLoader:
# Add trigger words to collection
all_trigger_words.extend(trigger_words)
trigger_words_text = ", ".join(all_trigger_words) if all_trigger_words else ""
# use ',, ' to separate trigger words for group mode
trigger_words_text = ",, ".join(all_trigger_words) if all_trigger_words else ""
return (model, clip, trigger_words_text)

View File

@@ -10,7 +10,9 @@ class TriggerWordToggle:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {},
"required": {
"group_mode": ("BOOLEAN", {"default": True}),
},
"optional": {
**FlexibleOptionalInputType(any_type),
"trigger_words": ("STRING", {"default": "", "defaultInput": True}),