Join without empty strings

This commit is contained in:
nkchocoai
2024-01-27 16:26:04 +09:00
parent 7d0f3f676b
commit 8944e116c4
+2 -1
View File
@@ -44,5 +44,6 @@ class PromptUtilitiesJoinStringList(BaseNode):
FUNCTION = "join"
def join(self, separator, **kwargs):
result = separator.join(kwargs.values())
# join without empty strings.
result = separator.join([s for s in kwargs.values() if s])
return (result,)