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: We want to override the standard google uri part of the model endpoint. Although some parameters e.g., api endpoint (host) can be overridden the uri...
### Description of the bug: Here is the code snippet that sometimes falls with the ValueError exception despite the fact that I disabled all the safety settings: genai.configure(api_key=self.api_key) model =...
_This issue was automatically created by [Allstar](https://github.com/ossf/allstar/)._ **Security Policy Violation** Security policy not enabled. A SECURITY.md file can give users information about what constitutes a vulnerability and how to report...
_This issue was automatically created by [Allstar](https://github.com/ossf/allstar/)._ **Security Policy Violation** Found 1 outside collaborators with admin access. This policy requires users with this access to be members of the organisation....
**Traceback (most recent call last): File "", line 1, in File "/home/asahi/Проекты/Python/gemini/gemini/__init__.py", line 5, in main run() File "/home/asahi/Проекты/Python/gemini/gemini/main.py", line 81, in run process_directory(SRC, DST) File "/home/asahi/Проекты/Python/gemini/gemini/main.py", line 73, in...
### Description of the bug: I believe this is related to [https://github.com/google/generative-ai-go/issues/97](https://github.com/google/generative-ai-go/issues/url) ### Actual vs expected behavior: As far as I remember, it worked earlier this week. I tried all...
### Description of the feature request: To support mypy type checking, please add support for mypy stubs library. Example error message: ```python # File contents: from google.generativeai.types.safety_types import HarmBlockThreshold, HarmCategory...
### Description of the feature request: Hi, I'm trying to get an API key for Gemini-1.5 pro, but I get redirected to a site stating which countries it is available...