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 203 generative-ai-python issues
Sort by recently updated
recently updated
newest added

### Description of the bug: Currently, this code: ```py model = genai.GenerativeModel(model_name, system_instruction="Talk in rhymes") model.count_tokens("") ``` Throws this error: ``` TypeError: contents must not be empty ``` It is...

type:bug
status:triaged
component:python sdk

### Description of the bug: I have read the docs here https://ai.google.dev/api/python/google/generativeai/GenerativeModel to learn that use `stream=True` could return chunks of response one by one, but when I was trying...

type:bug
status:awaiting user response
component:python sdk

### Description of the feature request: Add client timeout setting to overcome timeout errors. ### What problem are you trying to solve with this feature? I'm encountering this error where...

type:feature request
status:triaged
component:python sdk

Make printing less verbose.

status:awaiting review
component:python sdk

status:awaiting review
component:python sdk

### Description of the bug: result=glm.GenerateContentResponse({'candidates': [{'finish_reason': 4, 'index': 0, 'safety_ratings': [], 'token_count': 0, 'grounding_attributions': []}]}), ### Actual vs expected behavior: transcribe the audio correctly ### Any other information you'd...

type:bug
status:triaged
component:python sdk

Fixes: https://github.com/google-gemini/generative-ai-python/issues/139

status:awaiting review
component:python sdk

### Description of the bug: when I want use genai , I need to use this method in an interface request, but when I put "genai.upload_file(path=path,display_name=file)" into the interface method,...

type:bug
status:triaged
component:python sdk
p1

status:awaiting review
component:python sdk

Hi, I'm in the process of adding `google-generativeai` to conda-forge here: https://github.com/conda-forge/staged-recipes/pull/26259 One of the dependencies, `google-ai-generativelanguage` is not yet on conda-forge so I am adding that as well but...

type:feature request
status:awaiting review
status:triaged
component:python sdk