Enhance prompt formatting in DavchaPromptEnricher for clarity and structure

This commit is contained in:
David Chatel
2026-05-14 17:53:05 +02:00
parent 2d6796b6a1
commit 0cf21fb4d0
+1 -1
View File
@@ -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 = []