@@ -19,6 +19,10 @@ abstract class ImageOptions implements Arrayable
19
19
20
20
public ?int $ priority = null ;
21
21
22
+ public ?string $ loraWeightName = null ;
23
+
24
+ public ?float $ loraScale = null ;
25
+
22
26
/**
23
27
* This is only needed on model: bodies-xl-00001.safetensors, when we switch to the new model that Boris is training (expected to
24
28
* arrive on October 2nd), we can clear this. This model doesn't need a negative prompt. It also doesn't need Lora's probably
@@ -42,6 +46,8 @@ public function toArray(): array
42
46
'webhook_urls ' => $ this ->webhookUrls ,
43
47
'priority ' => $ this ->priority ,
44
48
'negative_prompt ' => $ this ->negativePrompt ,
49
+ 'lora_weight_name ' => $ this ->loraWeightName ,
50
+ 'lora_scale ' => $ this ->loraScale ,
45
51
];
46
52
}
47
53
@@ -126,4 +132,30 @@ public function setNegativePrompt(?string $negativePrompt): self
126
132
127
133
return $ this ;
128
134
}
135
+
136
+ /**
137
+ * Set the lora weight name for the image.
138
+ *
139
+ * @param string|null $loraWeightName
140
+ * @return $this
141
+ */
142
+ public function setLoraWeightName (?string $ loraWeightName ): self
143
+ {
144
+ $ this ->loraWeightName = $ loraWeightName ;
145
+
146
+ return $ this ;
147
+ }
148
+
149
+ /**
150
+ * Set the lora scale for the image.
151
+ *
152
+ * @param float|null $loraScale
153
+ * @return $this
154
+ */
155
+ public function setLoraScale (?float $ loraScale ): self
156
+ {
157
+ $ this ->loraScale = $ loraScale ;
158
+
159
+ return $ this ;
160
+ }
129
161
}
0 commit comments