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 change ## Motivation ## Type of change Choose one: (Documentation)
### Description of the bug: I tried to upload file, and wait for the status to be "ACTIVE" but got "FAILED" and this message. Can not find message descriptor by...
### Description of the feature request: I'd like to bump the dependency of `google-ai-generativelanguage` so it'll use later grpc and protobuf versions. ### What problem are you trying to solve...
### Description of the bug: I upload some txt files and want gemini to help me extracting some information from them. But the response kept being "500 An internal error...
### Description of the bug: I'm trying to create a cache by reading the contents of multiple PDF files, but when the total number of tokens within the files exceeds...
### Description of the feature request: Latest Python does not supported the streamlit for deployment ### What problem are you trying to solve with this feature? _No response_ ### Any...
### Description of the feature request: There are many recipes for all sorts of functionality, but none (that I can find) that show retry logic for return codes 429, 503...
### Description of the bug: Function calling does not work when providing `stop_sequences` and `stream=True`. ### Actual vs expected behavior: Actual: ```python import google.generativeai as genai import os from google.generativeai.types...
### Description of the bug: The `response.text` quick accessor only works when the response contains a valid `Part`, but none was returned. Check the `candidate.safety_ratings` to see if the response...