fix: allow STRING input connections for AUTOCOMPLETE_TEXT_PROMPT widgets

Use union type "AUTOCOMPLETE_TEXT_PROMPT,STRING" to enable input mode
compatibility with STRING outputs while preserving autocomplete widget
functionality via widgetType option.

Fixes issue where text inputs could not receive connections from
STRING-type outputs after changing from built-in STRING to custom
AUTOCOMPLETE_TEXT_PROMPT type.

Affected nodes:
- Prompt (LoraManager)
- Text (LoraManager)
This commit is contained in:
Will Miao
2026-01-29 09:07:22 +08:00
parent 58ae6b9de6
commit 2eea92abdf
2 changed files with 4 additions and 2 deletions

View File

@@ -12,8 +12,9 @@ class TextLM:
return {
"required": {
"text": (
"AUTOCOMPLETE_TEXT_PROMPT",
"AUTOCOMPLETE_TEXT_PROMPT,STRING",
{
"widgetType": "AUTOCOMPLETE_TEXT_PROMPT",
"placeholder": "Enter text... /char, /artist for quick tag search",
"tooltip": "The text output.",
},