Closed atmacoder closed 1 month ago
After inspecting the code, you can use this method to select a specific model instead of using the others.
$model = Gemini::generativeModel('models/gemini-1.5-flash');
$response = $model->generate(...);
I just released a new version.
Pro vision usage marked as deprecated. Also added geminiFlash
method.
You can also use any model you want without depending on enums with the following method.
$client->generativeModel(model: 'models/gemini-1.5-flash-001')
Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.