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: As user/pass have been set in ENV var as follows: ```py os.environ["HTTP_PROXY"] = "http://XXX:[email protected]:28888" os.environ["HTTPS_PROXY"] = "http://XXX:[email protected]:28888" ``` The uploading API will raise an error...
### Description of the bug: Calling `GenerativeModel.generate_content_async` in Colab results in the following error: ``` [/usr/local/lib/python3.10/dist-packages/google/generativeai/generative_models.py](https://localhost:8080/#) in generate_content_async(self, contents, generation_config, safety_settings, stream, tools, tool_config, request_options) 383 return await generation_types.AsyncGenerateContentResponse.from_aiterator(iterator) 384...
### Description of the bug: The only place w/ actual Python classes / methods docs seems to be in the repo under [docs/api/google/generativeai.md](https://github.com/google-gemini/generative-ai-python/blob/main/docs/api/google/generativeai.md) However, there's a prominent [ai.google.dev/gemini-api/docs](https://ai.google.dev/gemini-api/docs) link which...
Adding the following: - files_create_pdf - tokens_context_window - tokens_cached_content - tokens_system_instruction - tokens_tools
### Description of the bug: version: 0.54 python 3.9 The stop reason is always "STOP", never change, and usage_metadata is always empty ### Actual vs expected behavior: ``` async for...
### Description of the bug: Hi, I'm using gemini-pro to generate user preferences based on user reviews. However, I encountered an issue when my prompt was flagged and blocked due...
### Description of the feature request: Embedings requiers models/ ``` result = genai.embed_content( model="models/embedding-001", content="What is the meaning of life?", task_type="retrieval_document", title="Embedding of single string") # 1 input > 1...
### Description of the feature request: This is a tracking bug to coordinate the release of the 1.0 version of this library which will happen sometime in the future. We...