google-gemini-php / laravel

⚡️ Gemini PHP for Laravel is a community-maintained PHP API client that allows you to interact with the Gemini AI API.
MIT License
252 stars 29 forks source link

Class "App\Http\Controllers\User\Blob" not found Help me #10

Closed madfortech closed 1 month ago

madfortech commented 2 months ago

Screenshot 05-17-2024 11 49 04 Screenshot 05-17-2024 11 06 34 Screenshot 05-17-2024 11 07 35 here code Screenshot 05-17-2024 11 51 12

aydinfatih commented 2 months ago

Hello @madfortech , There seems to be a problem with the import of the Blob class, can you try again by adding the following import?

use Gemini\Data\Blob;

madfortech commented 1 month ago

This time New error Class "Gemini\Data\MimeType" not found Screenshot 05-20-2024 10 29 19

aydinfatih commented 1 month ago

It looks wrong in this import. Can you update it as below and try? use Gemini\Enum\MimeType

atmacoder commented 1 month ago

correct is

use Gemini\Enums\MimeType;