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 feature request: Could we add "json_schema" argument that reroutes to a forced function call instead? ### What problem are you trying to solve with this feature?...

type:feature request
status:triaged
component:python sdk

Add support for resumable uploads by following the MediaFileUpload class in Python: https://googleapis.github.io/google-api-python-client/docs/epy/googleapiclient.http.MediaFileUpload-class.html Add some pydocs to clarify what the parameters specified are. Confirmed this is working locally: ![image](https://github.com/google/generative-ai-python/assets/6380209/46e0ca5a-d5e9-4071-980e-b06d79e56c28)

status:awaiting review
component:python sdk

### Description of the bug: When I set transport="rest" in ChatGoogleGenerativeAI, I can't use chain.ainvoke ``` def get_gemini_pro() -> BaseChatModel: return ChatGoogleGenerativeAI(model="gemini-1.5-pro-latest", temperature=0, convert_system_message_to_human=True, transport="rest") async def invokeChain(code): llm=get_gemini_pro() chain=descriptionGenTemplate()|llm|CodeoutputStruction()...

type:bug
status:triaged
component:python sdk

### Description of the bug: package verison: 0.3.1 ``` File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 65, in error_remapped_callable return callable_(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/grpc/_channel.py", line 1161, in __call__ return _end_unary_response_blocking(state, call, False, None)...

type:bug
component:python sdk

### Description of the bug: { "name": "InternalServerError", "message": "500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting", "stack": "--------------------------------------------------------------------------- _MultiThreadedRendezvous Traceback (most recent call last) File...

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

### Description of the feature request: hi, i have a question i write this code but this 'resp' not JSON serializable ``` genai.configure(api_key=apiKey) model = genai.GenerativeModel("gemini-pro") resp = model.generate_content("tell me...

type:feature request
component:python sdk

### Description of the bug: When using the rest transport with async chat method it will result in `Unexpected type of call `. Using sync function however works fine. Changing...

type:bug
component:python sdk

### Description of the bug: I am a paid Gemini Enterprise customer. I STILL get Frequent google.api_core.exceptions.InternalServerError: 500 An internal error has occurred THIS IS NOT deterministic. Sometimes things work...

type:bug
component:python sdk

### Description of the bug: - Resource objects (Corpus, Document, Chunk) should have `.delete` methods - Methods like `document.delete_chunk(chunk.name)` should work on chunk objects not just chunk names. - Document...

type:bug
status:triaged
component:python sdk

### Description of the bug: _No response_ ### Actual vs expected behavior: _No response_ ### Any other information you'd like to share? _No response_

type:bug
status:triaged
component:python sdk