File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/inference/src/providers Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,19 @@ export class FalAIImageToImageTask extends FalAiQueueTask implements ImageToImag
215
215
return `/${ params . model } ` ;
216
216
}
217
217
218
+ override preparePayload ( params : BodyParams ) : Record < string , unknown > {
219
+ const payload = params . args ;
220
+ if ( params . mapping ?. adapter === "lora" && params . mapping . adapterWeightsPath ) {
221
+ payload . loras = [
222
+ {
223
+ path : buildLoraPath ( params . mapping . hfModelId , params . mapping . adapterWeightsPath ) ,
224
+ scale : 1 ,
225
+ } ,
226
+ ] ;
227
+ }
228
+ return payload ;
229
+ }
230
+
218
231
async preparePayloadAsync ( args : ImageToImageArgs ) : Promise < RequestArgs > {
219
232
const mimeType = args . inputs instanceof Blob ? args . inputs . type : "image/png" ;
220
233
return {
You can’t perform that action at this time.
0 commit comments