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: Hi, I'm encourating this issue while using gemini-1.5-flash in DSPy. Not sure if it belongs here, but the issue only occurs with the Gemini model....
### Description of the feature request: I would like to suggest a change to [configure](https://github.com/google-gemini/generative-ai-python/blob/main/google/generativeai/client.py#L119) Currently both api_key and credentials can be set to None. api_key: str | None =...
### Description of the feature request: _No response_ ### What problem are you trying to solve with this feature? _No response_ ### Any other information you'd like to share? _No...
### Description of the feature request: I would like the Python SDK to allow the same equivalent functionality as the JavaScript SDK regarding the possibility of modifying the request options...
### Description of the feature request: https://github.com/google-gemini/generative-ai-python/pull/333
### Description of the bug: Similar to: https://github.com/GoogleCloudPlatform/generative-ai/issues/344, but still present in latest version. model: genai.GenerativeModel('gemini-pro') You can reproduce with this prompt: If you remove the string `--- Page 2...
### Description of the bug: Getting this error *sometimes*. What does it mean? If I rerun the script, it is not raised every time, but only sometimes. ```python REQUEST_TIMEOUT =...
### Description of the bug: SQLTalk, a sample Streamlit app demonstrating Vertex AI's function calling with BigQuery was recently shared by Google: [Video](https://www.youtube.com/watch?v=pj5mRDy9lG8), [Tutorial](https://ai.google.dev/gemini-api/tutorials/sql-talk), [Code](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/function-calling/sql-talk-app), [Live demo](https://sql-talk-r5gdynozbq-uc.a.run.app/). Even though [the...
### Description of the bug: There are no reference docs for semantic_retreiver or generate_answer on ai.google.dev