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: how can i call the gemini service with proxy service.When I call Gemini's upload file and create cha t session service through the local proxy...

type:bug
status:triaged
component:python sdk

### Description of the bug: I have the following error when : `gemini_embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001",google_api_key=gapiket) vector = gemini_embeddings.embed_query("hello, world!")` I've read that the API doesn't work depending on the country....

type:bug
status:triaged
component:python sdk

The commit is a mirror of cl/638491582 by ayzhou@ As indicated in b/343572011, the issue affect all Python SDK FC usage in g3 including the official function calling colab. The...

status:awaiting review
component:python sdk

### Description of the bug: I tried installing [google-generativeai package](https://pypi.org/project/google-generativeai/) in NVIDIA Omniverse both through the script editor and for my extension using [omni.kit.pipapi](https://docs.omniverse.nvidia.com/kit/docs/omni.kit.pipapi/latest/Overview.html) but wasn’t able to. But I...

type:bug
status:triaged
component:python sdk

### Description of the bug: Here is my code: ```python from config import settings, google_ai_settings import discord from discord import app_commands from discord.ext import commands from googletrans import Translator import...

type:bug
status:triaged
component:python sdk

### Description of the bug: I encounter the error "TypeError: Couldn't build proto file into descriptor pool: duplicate symbol "'google.ai.generativelanguage.v1beta.__firstlineno__'", when trying to import this module. ### Actual vs expected...

### Description of the feature request: String literal types should create Enums in the generated schema. ### What problem are you trying to solve with this feature? _No response_ ###...

type:feature request

### Description of the bug: I test the python code and got the following error msg, How to solve this issue? thanks. > WARNING: All log messages before absl::InitializeLog() is...

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

## Description of the change Added threading support to `FileServiceClient` to make `discovery_api` thread-local. ## Motivation Fixes a threading issue where multiple threads could simultaneously access `self._discovery_api`, leading to bugs....

status:awaiting review
component:python sdk

### Description of the bug: When using response_schema in generate_content the response schema is not respected if the response_schema is set using a object ### Actual vs expected behavior: I...

type:bug
status:triaged
component:python sdk