generative-ai-python icon indicating copy to clipboard operation
generative-ai-python copied to clipboard

The Gemini API Python SDK enables developers to use Google's state-of-the-art generative AI models to build AI-powered features and applications.

Results 203 generative-ai-python issues
Sort by recently updated
recently updated
newest added

### Description of the bug: When attempting to use the `Content` object in API request/response there is an error that the object is not JSON serializable. I have created a...

type:bug
status:triaged
component:python sdk

### Description of the bug: This is our model config and when have a few image don't work fine. ![image](https://github.com/google-gemini/generative-ai-python/assets/34465153/4f5de1c4-13f8-4e3d-a3ba-2219f207646c) response ![image](https://github.com/google-gemini/generative-ai-python/assets/34465153/e88c3fd7-5f00-4153-8233-aec65bb6af64) but when i use the same the image...

type:bug
status:awaiting user response
component:python sdk

### Description of the feature request: `response.text` could check the safety filters and give a more directly helpful error message. If a message is blocked because of safety, currently you...

type:feature request
status:triaged
component:python sdk

status:awaiting review
component:python sdk

status:awaiting review
component:python sdk

### Description of the feature request: In OpenAI's Python SDK, you can implement client-side proxying through the following operation https://github.com/openai/openai-python#configuring-the-http-client ```python import httpx from openai import OpenAI client = OpenAI(...

type:feature request
status:triaged
component:python sdk

We are getting error after getting response from gemini. Error: "The `response.text` quick accessor only works for simple (single-`Part`) text responses. This response is not simple text.Use the `result.parts` accessor...

type:bug
status:triaged
component:python sdk

### Description of the bug: When using max_output_tokens in generate_content to limit the output of the model, the following error is thrown when trying to access response.text, whereas its expected...

type:bug
status:triaged
component:python sdk

### Description of the bug: is this true ### Actual vs expected behavior: ... ### Any other information you'd like to share? i would like to know if the filter...

type:bug
status:awaiting user response
component:python sdk
status:stale

### Description of the feature request: We support retry in this library [operations.py#L84](https://github.com/google-gemini/generative-ai-python/blob/ca827a85e03aa731b83ae5b712876607f4e1be44/google/generativeai/operations.py#L84) ### What problem are you trying to solve with this feature? As of yet it is unclear...

type:feature request
status:triaged
component:python sdk