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: `! curl -o image.jpg https://t0.gstatic.com/licensed-image?q=tbn:ANd9GcQ_Kevbk21QBRy-PgB4kQpS79brbmmEG7m3VOTShAn4PecDU5H5UxrJxE3Dw1JiaG17V88QIol19-3TM2wCHw` `img = PIL.Image.open('image.jpg')` `model = genai.GenerativeModel('gemini-pro-vision')` `response = model.generate_content(img)` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[56], line 1...
### Description of the feature request: Currently, the [Python Quickstart](https://ai.google.dev/tutorials/python_quickstart) documentation for using the Gemini API suggests setting the API key in the default client configuration. ```python import google.generativeai as...
### 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: This error occurs when the Google Generative AI model cannot encode the character '\ud835' in position 897 of the input text. This is because the...
### Description of the feature request: GLAPI supports `embed_content` through the async client, so we should support it through the SDK too. ### What problem are you trying to solve...
### Description of the bug: In https://github.com/google/generative-ai-python/pull/168 we added semantic retriever, but didn't get to resolve all open comments (it's a big feature). We're merging it without exposing the feature...
### Description of the bug: Unexpected type of call %s" % type(call) when do async chat call `send_message_async`. I use the `rest` as transport, use my own proxy api endpoint....
### Description of the feature request: Vertex AI has a `multimodal` embeddings model, this only supports text embeddings. ### What problem are you trying to solve with this feature? I...
I have been trying to use the Palm API and the palm.chat() function with google's new generative api. I've been in a maze of documentation and errors and I can't...
### Description of the bug: The current example produces a base 64 response instead of the actual recipe of the item. ### Actual vs expected behavior:  ### Any other...