generative-ai-python icon indicating copy to clipboard operation
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.

Results 156 generative-ai-python issues
Sort by recently updated
recently updated
newest added

### 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...

type:bug
component:python sdk

### 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...

type:feature request
component:python sdk
status:collecting interest

### 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...

type:feature request
component:python sdk

### 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...

type:bug
component:python sdk

### 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...

type:feature request
component:python sdk

### 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...

type:bug
component:python sdk

### 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....

type:bug
component:python sdk

### 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...

type:feature request
status:triaged
component:python sdk

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...

type:bug
good first issue
component:python sdk

### Description of the bug: The current example produces a base 64 response instead of the actual recipe of the item. ### Actual vs expected behavior: ![image](https://github.com/google/generative-ai-python/assets/149724527/d553cafc-d395-4680-9eff-e376ac986342) ### Any other...

type:bug
component:python sdk