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 feature request: From: https://github.com/google/generative-ai-python/pull/201 ### What problem are you trying to solve with this feature? _No response_ ### Any other information you'd like to share? _No...
### Description of the bug: Login with ADC fails. ``` gcloud auth application-default login --scopes="https://www.googleapis.com/auth/generative-language,https://www.googleapis.com/auth/cloud-platform" ``` What I did wrong? ### Actual vs expected behavior:  ### Any other information...
### Description of the bug: Hello Simple request bellow will succeed when addressed to gemini-pro but failed on gemini-pro-vision. This is the very basic request to reproduce but it occurs...
### Description of the bug: Accessing the property `response.text` no longer works. ```py genai.configure(api_key = gcp_key) model = genai.GenerativeModel("gemini-pro") response = model.generate_content(prompt) print(str(response.text) # TypeError: argument of type 'Part' is...
## Description of the change Fork safety_tpes and palm_safety_types The combined HarmCategory enum makes everything worse. Can we split them? ## Motivation Create a subcategory of the list of harm...
### Description of the feature request: How about providing new support for retrieving the log probability of each predicted token by Google models like Gemini? Something just like the same...
### Description of the bug: This issue happens when I use the `generate_content_async()` method. Everything works perfectly, but at the end it raises that `AttributeError: 'NoneType' object has no attribute...
### Description of the bug: The Generative Service Client or `GenerativeModel` classes don't document thread safety assumptions, and don't appear to be usable in a multithreaded environment for making concurrent...
### Description of the bug: _No response_ ### Actual vs expected behavior: I wanted to calculate the cost of generation when using `Google Gemini`. When I use the API it's...