generative-ai-python
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.
### Description of the bug: I am building a simple app. When I try to make the .py to exe using no matter which tool Pyinstaller ,py2exe. Nothing works. It...
## Description of the change Add python 3.8 support. Add tests for python 3.8. All the tests are passing. ## Motivation Some productions (for example, our team) still uses python3.8....
It would be nice to be able to configure the safety settings for chat bison. This would hopefully lessen getting "none" as a response. It would also help with making...
### Description of the feature request: Hi Any chance of deploying this as a conda library ? ### What problem are you trying to solve with this feature? _No response_...
We want to limit the reply length of chat responses, but [google.generativeai.chat](https://developers.generativeai.google/api/python/google/generativeai/chat) does not appear to support the `max_output_tokens` parameter. I'm not sure whether this is just not implemented yet,...
### Description of the bug: I met the error message `google.api_core.exceptions.ServiceUnavailable: 503 The service is currently unavailable.` frequently. Especially when I try to call the API multiple times using a...
### Description of the bug: response_schema parameter is not followed unless system_instruction also details the response_schema for gemini-1.5-pro family of models. This could be intended behavior, but it seems like...
Fixes: https://github.com/google-gemini/generative-ai-python/issues/326
### General Updates 1. **Documentation and Error Messages**: Improved clarity and accuracy in documentation and error messages across multiple files. This includes providing more descriptive error messages and consistent usage...
Needs tests. Fixes: https://github.com/google-gemini/generative-ai-python/issues/335