File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ abstract class ImageOptions implements Arrayable
40
40
41
41
public ?string $ breastPrompt = null ;
42
42
43
+ public ?int $ priority = null ;
44
+
43
45
/**
44
46
* Return the array representation of the character options.
45
47
*
@@ -60,6 +62,7 @@ public function toArray(): array
60
62
'lora_scale ' => $ this ->loraScale ,
61
63
'shemale_strength ' => $ this ->shemaleStrength ,
62
64
'breast_prompt ' => $ this ->breastPrompt ,
65
+ 'priority ' => $ this ->priority ,
63
66
];
64
67
}
65
68
@@ -222,4 +225,17 @@ public function setBreastPrompt(?string $breastPrompt): self
222
225
223
226
return $ this ;
224
227
}
228
+
229
+ /**
230
+ * Set the priority offset (adds or removes priority) on the image queue.
231
+ *
232
+ * @param int|null $priority
233
+ * @return $this
234
+ */
235
+ public function setPriority (?int $ priority ): self
236
+ {
237
+ $ this ->priority = $ priority ;
238
+
239
+ return $ this ;
240
+ }
225
241
}
You can’t perform that action at this time.
0 commit comments