mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
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:
@@ -15,8 +15,9 @@ class PromptLM:
|
|||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
"text": (
|
"text": (
|
||||||
"AUTOCOMPLETE_TEXT_PROMPT",
|
"AUTOCOMPLETE_TEXT_PROMPT,STRING",
|
||||||
{
|
{
|
||||||
|
"widgetType": "AUTOCOMPLETE_TEXT_PROMPT",
|
||||||
"placeholder": "Enter prompt... /char, /artist for quick tag search",
|
"placeholder": "Enter prompt... /char, /artist for quick tag search",
|
||||||
"tooltip": "The text to be encoded.",
|
"tooltip": "The text to be encoded.",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,8 +12,9 @@ class TextLM:
|
|||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
"text": (
|
"text": (
|
||||||
"AUTOCOMPLETE_TEXT_PROMPT",
|
"AUTOCOMPLETE_TEXT_PROMPT,STRING",
|
||||||
{
|
{
|
||||||
|
"widgetType": "AUTOCOMPLETE_TEXT_PROMPT",
|
||||||
"placeholder": "Enter text... /char, /artist for quick tag search",
|
"placeholder": "Enter text... /char, /artist for quick tag search",
|
||||||
"tooltip": "The text output.",
|
"tooltip": "The text output.",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user