fix(diffusers): don't send negative_prompt when using sd_embed

Signed-off-by: Austen Dicken <cvpcsm@gmail.com>
(cherry picked from commit 69a9f6a471)
This commit is contained in:
Austen Dicken authored and Ettore Di Giacinto committed 2026-10-13 08:08:12 +00:00
1 parent 9b13408c94
commit 5e53f5aed5
1 file changed
+4
+4
View File
@@ -882,6 +882,10 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
prompt = prompt,
)
# remove negative_prompt that may have been added earlier from options to avoid conflict
# errors from passing both negative_prompt and negative_prompt_embeds
kwargs.pop('negative_prompt', None)
image = self.pipe(
guidance_scale=self.cfg_scale,
**kwargs