We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de8fbfa commit 0438b57Copy full SHA for 0438b57
1 file changed
src/Replicate.php
@@ -188,12 +188,15 @@ public function generate()
188
{
189
assert($this->prompt !== null, 'You must provide a prompt');
190
// assert($numberOfImages > 0, 'You must provide a number greater than 0');
191
-
+ $input = [];
192
$input = [
193
'prompt' => $this->prompt->toString(),
194
// 'num_outputs' => $numberOfImages,
195
];
196
197
+ if (isset($this->inputParams['prompts'])) {
198
+ unset($input['prompt']);
199
+ }
200
$input = array_merge($input, $this->inputParams);
201
202
$response = $this->client()->post(
0 commit comments