client icon indicating copy to clipboard operation
client copied to clipboard

⚡️ Gemini PHP is a community-maintained PHP API client that allows you to interact with the Gemini AI API.

Results 12 client issues
Sort by recently updated
recently updated
newest added

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`

![Screenshot 05-17-2024 11 05 20](https://github.com/google-gemini-php/client/assets/21261716/1a454a58-9bef-41d6-965a-c00709a25bd2) ![Screenshot 05-17-2024 11 06 34](https://github.com/google-gemini-php/client/assets/21261716/7d64626b-be6e-4c8a-8fce-088daa4cc581) ![Screenshot 05-17-2024 11 07 35](https://github.com/google-gemini-php/client/assets/21261716/d07e5f40-dd89-45ce-ab54-2c2ce2d682eb) here is code ![Screenshot 05-17-2024 11 08 09](https://github.com/google-gemini-php/client/assets/21261716/d10f1c18-4e12-4d73-b8ea-edfeb2d24e67) Api key ![Screenshot 05-17-2024 11 09 08](https://github.com/google-gemini-php/client/assets/21261716/7544b6aa-e456-4c7f-be56-660bbf1fdf44)

How can I access my tuned models?

Getting error message: ``` "message": "Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.", ``` Please update model as previous...

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

There is no method for chat to stream a reply

# Context Google's `GenerateContentResponse` includes a "[usageMetadata](https://ai.google.dev/api/generate-content#usagemetadata)". The above has reference to 4 attributes of the usageMetadata, however the actual returned response currently only includes the 3 listed [here in...

Resolve google-gemini-php/client#8 Use v1beta as default base URL to support the feature

Using the examples fails with the following error: 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...

In the readme is **batchEmbedContents** mentioned: `Use the embedding-001 model with either embedContents or batchEmbedContents:` But there seems to be no way to use batchEmbedContents (only embedContents as a string...