Support new JSON mode for Gemini 1.5 Pro model
See https://ai.google.dev/gemini-api/docs/api-overview#json
Seems currently there is no way for me to pass arbitrary/custom data for GenerationConfig
yes this should def be added
This seems to be the only way this library will be able to be used as using the provided examples gives us:
Error! Gemini API operation failed: operation=models/gemini-pro-vision:generateContent, status_code=404, response={ "error": { "code": 404, "message": "Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.", "status": "NOT_FOUND" } }
@dmaicher This feature is in beta. This package is currently running stable features. I am planning a version that will support beta features as beta branchi.
@joeybab3 https://github.com/google-gemini-php/client/issues/25
@dmaicher @yosun @joeybab3 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
Did this feature remain only in version 1.0.0-beta and then got lost?
@aydinfatih
Did this feature remain only in version 1.0.0-beta and then got lost?
It's still available on the beta branch https://github.com/google-gemini-php/client/tree/beta?tab=readme-ov-file#structured-output