File tree 3 files changed +14
-3
lines changed
plugin-image-generation/src
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -935,6 +935,8 @@ export const generateImage = async (
935
935
seed ?: number ;
936
936
modelId ?: string ;
937
937
jobId ?: string ;
938
+ stylePreset ?: string ;
939
+ hideWatermark ?: boolean ;
938
940
} ,
939
941
runtime : IAgentRuntime
940
942
) : Promise < {
@@ -1121,9 +1123,12 @@ export const generateImage = async (
1121
1123
model : data . modelId || "fluently-xl" ,
1122
1124
prompt : data . prompt ,
1123
1125
negative_prompt : data . negativePrompt ,
1124
- width : data . width || 1024 ,
1125
- height : data . height || 1024 ,
1126
- steps : data . numIterations || 20 ,
1126
+ width : data . width ,
1127
+ height : data . height ,
1128
+ steps : data . numIterations ,
1129
+ seed : data . seed ,
1130
+ style_preset : data . stylePreset ,
1131
+ hide_watermark : data . hideWatermark ,
1127
1132
} ) ,
1128
1133
}
1129
1134
) ;
Original file line number Diff line number Diff line change @@ -718,6 +718,8 @@ export type Character = {
718
718
modelId ?: string ;
719
719
jobId ?: string ;
720
720
count ?: number ;
721
+ stylePreset ?: string ;
722
+ hideWatermark ?: boolean ;
721
723
} ;
722
724
voice ?: {
723
725
model ?: string ; // For VITS
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ const imageGeneration: Action = {
109
109
seed ?: number ;
110
110
modelId ?: string ;
111
111
jobId ?: string ;
112
+ stylePreset ?: string ;
113
+ hideWatermark ?: boolean ;
112
114
} ,
113
115
callback : HandlerCallback
114
116
) => {
@@ -140,6 +142,8 @@ const imageGeneration: Action = {
140
142
...( options . seed != null || imageSettings . seed != null ? { seed : options . seed || imageSettings . seed } : { } ) ,
141
143
...( options . modelId != null || imageSettings . modelId != null ? { modelId : options . modelId || imageSettings . modelId } : { } ) ,
142
144
...( options . jobId != null || imageSettings . jobId != null ? { jobId : options . jobId || imageSettings . jobId } : { } ) ,
145
+ ...( options . stylePreset != null || imageSettings . stylePreset != null ? { stylePreset : options . stylePreset || imageSettings . stylePreset } : { } ) ,
146
+ ...( options . hideWatermark != null || imageSettings . hideWatermark != null ? { hideWatermark : options . hideWatermark || imageSettings . hideWatermark } : { } ) ,
143
147
} ,
144
148
runtime
145
149
) ;
You can’t perform that action at this time.
0 commit comments