Skip to content

Commit

Permalink
Fix: Wrong argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemkose committed Dec 24, 2023
1 parent f7fef41 commit b4de3ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ public function generateTextUsingImageFile(

$image = base64_encode($contents);

return $this->generateTextUsingImage($prompt, $imageType, $image);
return $this->generateTextUsingImage($imageType, $image, $prompt);
}

/**
* Generates a text based on the given image.
* The image data must be a base64 encoded string,
*
* You can also provide a prompt.
*
* The image type must be one of the types below
Expand Down

0 comments on commit b4de3ea

Please sign in to comment.