fix: expose api text output in comfy history

This commit is contained in:
roylkng
2026-06-01 20:18:22 +05:30
parent b63ddfadd9
commit 9cf8f296a7
2 changed files with 24 additions and 2 deletions
+3 -2
View File
@@ -18,5 +18,6 @@ class ApiTextOutputNode:
CATEGORY = "Fast Preview"
def send_text_to_api(self, text):
print(f"[Fast Preview] Sending text string to API payload: {text}")
return (text, {"ui": {"text": [text]}})
text_value = str(text)
print(f"[Fast Preview] Sending text string to API payload: {text_value}")
return {"ui": {"text": [text_value]}, "result": (text_value,)}