From e006c9b7d5a495689bf918dc45e5597d14f488aa Mon Sep 17 00:00:00 2001 From: Teddy Xiong Date: Thu, 26 Mar 2026 04:53:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20use=20any=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsyncOutput.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AsyncOutput.py b/AsyncOutput.py index fc4f893..0de89ec 100644 --- a/AsyncOutput.py +++ b/AsyncOutput.py @@ -257,7 +257,7 @@ class AsyncOutputMultiLineTextWithBatchNode: "touch": ("BOOLEAN", { "forceInput": True }), "eof_size": ("INT", { "forceInput": True }), "text": ("STRING", { "multiline": True }), - "remove_words": ("LIST", { "forceInput": True }), + "remove_words": ("*", { "forceInput": True }), "delimiter": ("STRING", { "multiline": False, "default": "\n" }), "skip_empty": ("BOOLEAN", { "default": True }), }, @@ -272,6 +272,10 @@ class AsyncOutputMultiLineTextWithBatchNode: FUNCTION = "batch_text_yield" def batch_text_yield(self, touch, eof_size, text, remove_words, delimiter="\n", skip_empty=True, unique_id=0): + + if isinstance(remove_words, list) == False: + raise Exception(f'ERROR: "remove_words" data type not "list". remove_words: {type(remove_words)}') + global ASYNC_OUTPUT_MULTI_LINE_TEXT_YIELD_ID_DECT if unique_id not in ASYNC_OUTPUT_MULTI_LINE_TEXT_YIELD_ID_DECT: