google-gemini-php / client

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

feat: New Gemini releases #26

Closed nalbantferhat closed 1 month ago

nalbantferhat commented 3 months ago

Support for gemini-1.0-pro, gemini-1.0-pro-latest, gemini-1.5-pro, gemini-1.5-flash

25

nalbantferhat commented 3 months ago

@aydinfatih or @bradleybernard could you please check and approve the pull requests if they are suitable?

CameronKolick commented 3 months ago

@bradleybernard @aydinfatih Is there an ETA on this getting approved and a new tag created to make it available? I want to use this project in my app but cannot without this.

aydinfatih commented 1 month ago

A separate method for each version does not seem very healthy to me. After a while, there may be a method stack. You can generate models with the help of this method. Or you can pass string to the model parameter in the following usage.

$this->generativeModel(model: ModelType::generateGeminiModel(variation: ModelVariation::FLASH, generation: 1.5));