generative-ai-python
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.
### 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...
### Description of the bug: This is our model config and when have a few image don't work fine.  response  but when i use the same the image...
### 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...
### 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(...
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...
### 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...
### 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...
### 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...