Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: missing prompt (#2294)

Yeuolycb27571e9fbd
diff --git a/api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py b/api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py
index 02fc7448e07..7626048f989 100644
--- a/api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py
+++ b/api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py
@@ -188,6 +188,8 @@ class StableDiffusionTool(BuiltinTool):
if lora:
draw_options['prompt'] = f'{lora},{prompt}'
+ else:
+ draw_options['prompt'] = prompt
draw_options['width'] = width
draw_options['height'] = height