mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
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:
1 parent
9b13408c94
commit
5e53f5aed5
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user