Skip to content

Commit 0438b57

Browse files
committed
update
1 parent de8fbfa commit 0438b57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Replicate.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,15 @@ public function generate()
188188
{
189189
assert($this->prompt !== null, 'You must provide a prompt');
190190
// assert($numberOfImages > 0, 'You must provide a number greater than 0');
191-
191+
$input = [];
192192
$input = [
193193
'prompt' => $this->prompt->toString(),
194194
// 'num_outputs' => $numberOfImages,
195195
];
196196

197+
if (isset($this->inputParams['prompts'])) {
198+
unset($input['prompt']);
199+
}
197200
$input = array_merge($input, $this->inputParams);
198201

199202
$response = $this->client()->post(

0 commit comments

Comments
 (0)