Releases: googleapis/python-genai
Releases · googleapis/python-genai
v1.27.0
v1.26.0
1.26.0 (2025-07-16)
Features
- Add
addWatermark
parameter to the edit image configuration. (a5b1545) - Adding codegen instructions to guide LLMs to generate code with the Google GenAI SDK (d82634b)
Bug Fixes
- live: Enhance security by moving api key from query parameters to header (d78add3)
Documentation
- Update generated video resolution config docstring (d06254c)
v1.25.0
1.25.0 (2025-07-09)
Features
- Add new languages for Imagen 4 prompt language (cbd643e)
- Make t_schema in Gemini API reusable from Genai Procesors. (922eaf5)
Bug Fixes
- Improve code dependency to make
types
more self-contained (7d0a7d8) - python: Fix response.parse when response_json_schema is provided. (babb01f)
Documentation
v1.24.0
v1.23.0
v1.22.0
1.22.0 (2025-06-25)
Features
- Add compressionQuality enum for generate_videos (b132387)
- Add enhance_input_image and image_preservation_factor fields for upscale_image (cdcd4f5)
- Allow users to access headers for generateContent method and generateContentStream (80c8964)
- Expose the responseJsonSchema in GenerateContentConfig (714452f)
- Improve repr for pydantic objects. (80ab054)
- Support Batches create/get/list/cancel in Gemini Developer API (5ab8a56)
- Support IntEnums when processing JSON schemas (6cc2bdb)
Bug Fixes
- Keep chunk content history when thought summaries are enabled in the stream response (91e7246)
- The send_client_content function with Blob input. (8491e4c)
Documentation
v1.21.1
v1.21.0
1.21.0 (2025-06-18)
Features
- Add retries to http client (aed2f48)
- Enable json schema for controlled output and function declaration. (624c8e7)
- Support extra_body in HttpOptions (273c9b8)
Bug Fixes
- Update aiohttp client's SSL handling and configure trust_env by default to match httpx (462dd3e)
Documentation
v1.20.0
1.20.0 (2025-06-11)
Features
- Add datastore_spec field for VertexAISearch (a26d998)
- Add support for Veo frame interpolation and video extension (1648dda)
- Add Video.from_file() support in Python SDK (7eb5b07)
- RAG - Introducing context storing for Gemini Live API. (c00c4a9)
- Use aiohttp in async APIs to lower latency if aiohttp is installed, otherwise use default httpx in async APIs (2f448bc)
Bug Fixes
- chats: Relax the constraint on chat turns (046fa87)
- Make function calls asynchronous in subsequent AFC calls (3e429a0)
Documentation
- Generate docs for 1.19.0 (4df9230)
v1.19.0
1.19.0 (2025-06-04)
Features
- Add enhance_prompt field for Gemini Developer API generate_videos (92ca562)
- Add FunctionResponse.from_mcp_response() convenience function for parsing MCP responses to send to subsequent model calls. (e1b980d)
- Enable url_context for Vertex (99551c9)
- python: Support
GEMINI_API_KEY
as environment variable for setting API key. (ae2392c)
Bug Fixes
- Enable FunctionDeclaration parser when future is imported (589b520)