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: This problem frequently occurs when using Python 3.10 to call google-genai version 1.38.0. The image file encoding uses the following method with open(image_path, 'rb') as...
### Description of the feature request: Currently, the gemini-embedding-001 endpoint returns a single, aggregated vector representing the entire text input. This request is to add a feature, likely through an...
## Description of the change Relax the version requirement of google-ai-generativelanguage, this is to improve the interoperability with other libraries such as `langchain-google-genai` ## Motivation Spotted in https://github.com/langchain-ai/langchain-google/issues/956, the hard...
### Description of the bug: When using the google-generativeai library in a Google Colab environment (Python 3.11), calling model.generate_content_async() consistently results in a TypeError: object GenerateContentResponse can't be used in...
### Description of the feature request: I used the env-var "XDG_CONFIG_HOME" and "GEMINI_USER_HOME" to specify the saved path of check-points, but failed. Does cli has the features to redirect the...
### Description of the bug: In some of my use cases, I have very frequent 500 errors. I'm retrying them, but some are persistent. Here's an example `GenerateContentParameters` https://gist.github.com/uriva/ec104cbf926ad142036490460ce8c2ad ###...
### Description of the bug: Hello, I am experiencing a persistent 404 Not Found error when trying to use the generateContent method with both gemini-1.0-pro and gemini-pro models. My region...
### Description of the bug: **Summary:** The Gemini API (accessed via Google AI Studio paid tier) is exhibiting non-deterministic behavior for the `gemini-2.5-pro` model. It is producing different outputs for...
### Description of the bug: Hello, I'm occasionally experiencing empty responses by the Gemini model. The task is to chunk a man page into blocks, so the content is of...
### Description of the bug: Body: Hello, I am encountering a persistent AttributeError: module 'google.generativeai' has no attribute 'Tool' even after extensive debugging, including a full virtual environment rebuild. The...