From b63ddfadd93928efa7cbff242b6d0e3639c2f961 Mon Sep 17 00:00:00 2001 From: curious-george-is-available Date: Mon, 1 Jun 2026 15:19:38 +0530 Subject: [PATCH] fix: update ApiTextOutputNode to return string and ui dict --- api_text_node.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/api_text_node.py b/api_text_node.py index c4bf73b..dea2f7a 100644 --- a/api_text_node.py +++ b/api_text_node.py @@ -13,16 +13,10 @@ class ApiTextOutputNode: # Tells ComfyUI's API wrapper that this node yields valid execution data OUTPUT_NODE = True - RETURN_TYPES = () + RETURN_TYPES = ("STRING",) FUNCTION = "send_text_to_api" CATEGORY = "Fast Preview" def send_text_to_api(self, text): print(f"[Fast Preview] Sending text string to API payload: {text}") - - # Returns empty tuple for standard routing, passes text to the UI/API layers - return { - "ui": { - "text": [text] - } - } + return (text, {"ui": {"text": [text]}})