Skip to content

Commit 411eb12

Browse files
committed
Add priority to ImageOptions
1 parent 8164a9f commit 411eb12

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Requests/Images/Data/ImageOptions.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ abstract class ImageOptions implements Arrayable
4040

4141
public ?string $breastPrompt = null;
4242

43+
public ?int $priority = null;
44+
4345
/**
4446
* Return the array representation of the character options.
4547
*
@@ -60,6 +62,7 @@ public function toArray(): array
6062
'lora_scale' => $this->loraScale,
6163
'shemale_strength' => $this->shemaleStrength,
6264
'breast_prompt' => $this->breastPrompt,
65+
'priority' => $this->priority,
6366
];
6467
}
6568

@@ -222,4 +225,17 @@ public function setBreastPrompt(?string $breastPrompt): self
222225

223226
return $this;
224227
}
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+
}
225241
}

0 commit comments

Comments
 (0)