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: **The only difference between 2 curl requests is: text part. i.e, for 1st curl request, the text is : what is the count of mi...

type:bug
status:triaged
component:support

## Description of the change Add py.typed file to package ## Motivation Without the py.typed, the library is considered untyped by type-checkers such as MyPy. ## Type of change Other...

status:awaiting review
component:python sdk

### Description of the feature request: Increase character limitation in tuning jobs to take advantage of the Flash 1.5 1,000,000 token window. ### What problem are you trying to solve...

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

# TLDR When calling a function that returns a proto (or list of protos), a ValueError is thrown because it cannot coerce the results. ![image](https://github.com/google-gemini/generative-ai-python/assets/13949241/0e4034a0-c28f-4b65-a62b-7fbdf0d38635) # Potential Fix I'm assuming...

type:bug
status:triaged

### Description of the bug: I can't run the method `upload_file` with a google cloud credential. I would like to `upload file` using json key. However, I can't upload file...

type:bug

### Description of the bug: Python 3.13 is launching soon, ensure any new releases are compatible. ### Actual vs expected behavior: We don't have any tests for 3.13. Add a...

type:feature request
status:triaged
p3

### Description of the bug: Function Calling Behavior Issues: Tool Usage Reluctance: Even when tools are properly defined, Gemini often refuses to use them, claiming it "can't access files" or...

status:awaiting user response
component:python sdk
status:stale

### Description of the bug: Getting this issue again, can you please have a quick look? https://github.com/google-gemini/deprecated-generative-ai-python/issues/697 ### Actual vs expected behavior: _No response_ ### Any other information you'd like...

type:bug
status:triaged
component:python sdk
p2

### Description of the bug: For the code below, ``` # pip install -q -U google-genai # pip install -U google-generativeai httpx from google import genai import os google_api_key =...

status:awaiting user response
status:triaged
status:stale
p2

### Description of the bug: Hello I followed the official document of handling [large image payload (>20MB)](https://ai.google.dev/gemini-api/docs/vision?lang=python#large-images) but still got the 400 invalid error with the code: ``` MODEL_NAME =...

type:bug
component:api