Releases: googleapis/python-genai
Releases · googleapis/python-genai
v1.16.1
v1.16.0
1.16.0 (2025-05-19)
Features
- Add
time range filter
to Google Search Tool (b79c414) - Add basic support for async function calling. (6258dad)
- Add Files module with Files.upload, .get and .delete (f4dd629)
- Add live proactivity_audio and enable_affective_dialog (778d6a2)
- Add Lyria Realtime music generation support for Python (e746417)
- Add Lyria Realtime Music Types (18d2407)
- Add MCP telemetry usage to Python SDK. (0bc6ab5)
- Add multi-speaker voice config (1d73827)
- Add support for lat/long in search. (50ddf98)
- Add support for MCP in Python SDK. (dcd7819)
- Add support for MCP in Python SDK. (3f531c3)
- Add telemetry headers for synchronous calls with MCP (638c7f4)
- Add Video FPS, and enable start/end_offset for MLDev (bfaa1df)
- Raises an error when there are duplicate tool names. (301c699)
- Support customer-managed encryption key in cached content (e951337)
- Support ephemeral token creation in Python (141d540)
- Support models.get/delete/update in Java (aeaadf8)
- Support Url Context Retrieval tool (cbd1ea6)
- Support using ephemeral token in Live session connection in Python (141d540)
Bug Fixes
- Clone config when parsing for MCP tools (5feeb60)
- Fix imports if mcp is not installed (e46eb05)
- Live tools (032d1fe)
- Prevent MCP label from being appended multiple times if they already exist (974ba07)
- Typo in error message. (9a45bfd)
- Update parse_config_for_mcp_tools to remove the deep copy of the config and filter tools (d4dd2bb)
- Use inspect.cleandoc on function docstrings in generate_function_declaration. (bc664d9)
Documentation
Miscellaneous Chores
v1.15.0
v1.14.0
1.14.0 (2025-05-07)
Features
- Add
Tool.enterprise_web_search
field (731c5a3) - Add support for Grounding with Google Maps (1efc057)
- Enable input transcription for Gemini API. (157b16b)
Bug Fixes
- Add retry logic for missing x-goog-upload-status header for python (5bb70fc)
- Fix resource warning raised by unclosed httpx client (a3a6d34)
- Raise ValueError when 'x-goog-upload-status' header is not present in file upload response (dfdea36)
Documentation
- Regenerate docs for 1.13.0 (5269212)
v1.13.0
1.13.0 (2025-04-30)
Features
- Add models.delete and models.update to manage tuned models (53a3282)
- Add support for live grounding metadata (b904cba)
- Make min_property, max_property, min_length, max_length, example, patter fields available for Schema class when calling Gemini API (52919cb)
- Support setting the default base URL in clients via set_default_base_urls() (2b82d72)
- Support using the passed credentials in AsyncLive::connect (#738) (568cfd2)
Bug Fixes
- Do not raise error for
default
field in Schema for Gemini API calls (1d3d1c9) - Set
propertyOrdering
when schema is specified asdict
ortypes.Schema
. (48eebe0)
Documentation
- Add a link for where to find the Google Cloud project id, API key and location (916bd6e)
v1.12.1
v1.12.0
1.12.0 (2025-04-23)
Features
- Add additional realtime input fields (bef6385)
- Add py.typed so MyPy interprets this as a typed library (b137b4d)
- Automatically determine mime_type for Part.from_uri (b9d3be1)
- Generate _live_converters.py (d526a08)
- Introduce from_json_schema classmethod to Schema class to allow conversion from JSONSchema class object to Schema class object (899fa1a)
- Support
default
field in Schema when users call Gemini API (1e56add)
Documentation
- Regenerate docs for 1.11.0 (473bf4b)
v1.11.0
1.11.0 (2025-04-16)
Features
- Add support for model_selection_config to GenerateContentConfig (fdb0662)
- Introduce json_schema quick accessor in Schema class to convert Google's Schema class into JSONSchema class. (6e55222)
- Support audio transcription in Vertex Live API (9678aba)
- Support configuring the underlying httpx client by allowing the caller to pass client arguments via HttpOptions. (5130e0a)
- Support RealtimeInputConfig, and language_code in SpeechConfig in python (807f098)
- Support user passing in async function to async generate_content and async generate_content_stream for automatic function calling (33d190a)
- Update VertexRagStore (c4558e5)
Bug Fixes
v1.10.0
1.10.0 (2025-04-09)
⚠ BREAKING CHANGES
- remove Part.from_video_metadata
Features
- Add adapter size 2 for Gemini 2.0 Tuning (959df89)
- Add domain to Web GroundingChunk (9a75d48)
- Add session resumption. (6e80ae7)
- Add thinking_budget to ThinkingConfig for Gemini Thinking Models (71863e0)
- Add traffic type to GenerateContentResponseUsageMetadata (925f983)
- Add transcription support for MLDev (c0a1b5c)
- Add types for configurable speech detection (ae4ecee)
- Add types to support continuous sessions with a sliding window (7099e1e)
- Add UsageMetadata to LiveServerMessage (018846a)
- Added support for Context Window Compression (e5c646c)
- Populate X-Server-Timeout header when a request timeout is set. (2af7b67)
- Remove experimental warnings for generate_videos and operations (fa6007a)
- Remove experimental warnings from live api. (007d1b1)
- Support media resolution (ef64f8a)
Bug Fixes
- Remove Part.from_video_metadata (c0947ab)
- Upload file should support timeout (in milliseconds) configuration from http_options per request or from client (5f3e895)
Miscellaneous Chores
- Release 1.10.0 (c136e41)
v1.9.0
1.9.0 (2025-04-01)
Features
- Add specialized
send
methods to the live api (9c4e4dc) - Expose generation_complete, input/output_transcription & input/output_audio_transcription to SDK for Vertex Live API (e5685ad)
- Merge GenerationConfig into LiveConnectConfig (d22535e)
Bug Fixes
Documentation
- Docstring improvements (77f5356)