Closed dmaicher closed 6 months ago
Hello, First of all, thank you for your feedback. This feature is currently in beta. Including it in the package might be a problem at the moment.
Yeah I see. Maybe allowing GenerationConfig|Arrayable
might be a solution? being constrained for the allowed config by this lib seems not so ideal. Whenever new config options are available this would require an update/release as we see with this issue.
The package is currently not sending requests to the beta api. Therefore the stable api will not recognize this feature. I plan to create a separate branch for this and other beta features, so that those who want to use beta features can access them through this branch.
The package is currently not sending requests to the beta api
yeah not by default but its easily possible with
Gemini::factory()->withBaseUrl('https://generativelanguage.googleapis.com/v1beta/')
Thanks for looking into it :+1:
Yes, this is possible, but anyone using the package will need to be aware that this parameter only works in beta. As I said, I'm planning to open a separate branch for the beta to add these features, I'll let you know when that's done.
Hello @aydinfatih do you have any update regarding the beta branch? Thanks
Hi @aydinfatih maybe instead of separate branch BetaGenerationConfig
could be provided ?
I also think that the decision to exclude beta APIs is like putting the package on the shelf. Most generative AI providers release or mark their first revisions as beta or preview versions. Since this is a relatively new area, most users are really looking to use the latest versions.
Hi @dmaicher @beliven-daniele-sarnari @avengerweb @pionl This feature has been added to the beta version. You can use it by updating the version of the package in composer.json to the version I specified.
https://packagist.org/packages/google-gemini-php/client#1.0.0-beta
You can check the PR https://github.com/google-gemini-php/client/pull/34
Fixes #18
This allows doing
and the response will be JSON then.