From 0cf21fb4d0aedabdc034d9c60730af75b7d74062 Mon Sep 17 00:00:00 2001 From: David Chatel Date: Thu, 14 May 2026 17:53:05 +0200 Subject: [PATCH] Enhance prompt formatting in DavchaPromptEnricher for clarity and structure --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index ec4ce7a..62a5a8b 100644 --- a/nodes.py +++ b/nodes.py @@ -174,7 +174,7 @@ class DavchaPromptEnricher(io.ComfyNode): m = re.findall(r'\{([^}]+)\}', prompt) keys = '\n'.join([f'{x}:' for x in m]) - p = f"""PROMPT:\n{prompt}\n\nKEYS:\n{keys}""" + p = f"""Based on the following prompt:\n\n---\n\n{prompt}\n\n---\n\nExpand each of the following keys:\n{keys}""" if images is not None: content = []