@@ -128,25 +128,21 @@ const imageGeneration: Action = {
128
128
prompt : imagePrompt ,
129
129
width : options . width || 1024 ,
130
130
height : options . height || 1024 ,
131
- ...( options . count !== undefined
132
- ? { count : options . count || 1 }
133
- : { } ) ,
134
- ...( options . negativePrompt !== undefined
131
+ ...( options . count != null ? { count : options . count || 1 } : { } ) ,
132
+ ...( options . negativePrompt != null
135
133
? { negativePrompt : options . negativePrompt }
136
134
: { } ) ,
137
- ...( options . numIterations !== undefined
135
+ ...( options . numIterations != null
138
136
? { numIterations : options . numIterations }
139
137
: { } ) ,
140
- ...( options . guidanceScale !== undefined
138
+ ...( options . guidanceScale != null
141
139
? { guidanceScale : options . guidanceScale }
142
140
: { } ) ,
143
- ...( options . seed !== undefined ? { seed : options . seed } : { } ) ,
144
- ...( options . modelId !== undefined
141
+ ...( options . seed != null ? { seed : options . seed } : { } ) ,
142
+ ...( options . modelId != null
145
143
? { modelId : options . modelId }
146
144
: { } ) ,
147
- ...( options . jobId !== undefined
148
- ? { jobId : options . jobId }
149
- : { } ) ,
145
+ ...( options . jobId != null ? { jobId : options . jobId } : { } ) ,
150
146
} ,
151
147
runtime
152
148
) ;
0 commit comments