Skip to content

Releases: googleapis/python-genai

v1.21.1

19 Jun 14:00
374e127
Compare
Choose a tag to compare

1.21.1 (2025-06-19)

Bug Fixes

  • Re-raise exception during retries (d6a223c)

Documentation

  • Regenerate docs for 1.21.0 (feaf5fe)

v1.21.0

18 Jun 23:53
5462ceb
Compare
Choose a tag to compare

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

  • Add instructions to use the aiohttp options for faster async performance and client_args/async_client_args in HttpOptions (0820ed6)
  • Add proxy instruction (f90af49)
  • Regenerate docs for 1.20.0 (66f198a)

v1.20.0

11 Jun 22:16
172d532
Compare
Choose a tag to compare

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

04 Jun 23:02
bd85e3d
Compare
Choose a tag to compare

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)

v1.18.0

30 May 23:43
903e072
Compare
Choose a tag to compare

1.18.0 (2025-05-30)

Features

  • Adding thought_signature field to the Part to store the signature for thoughts. (303f906)
  • Include UNEXPECTED_TOOL_CALL enum value to FinishReason for Vertex AI APIs. (ccbc66e)
  • Support ephemeral auth tokens as API keys for live connections in Python. (db1d7ee)

Bug Fixes

  • Ignore struct types when performing forward compatibility field filtering (7024011)

⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES

  • Removed live_ephemeral_connect, ephemeral auth tokens can now be used as API keys (db1d7ee)
  • Rename LiveEphemeralParameters to LiveConnectConstraints. (6719faf)

v1.17.0

28 May 22:41
8a726d0
Compare
Choose a tag to compare

1.17.0 (2025-05-28)

⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES

  • Remove unsupported Lyria enum for music generation mode

Features

  • Add generate_audio field for private testing of video generation (c2bccf3)
  • Send automatic function calling None responses as NULL to the model (8446e3d)
  • Support API keys for live in VertexAI mode (5b5a750)
  • Support new fields in FileData, GenerationConfig, GroundingChunkRetrievedContext, RetrievalConfig, Schema, TuningJob, VertexAISearch, (b07c549)

Documentation

Miscellaneous Chores

  • Remove unsupported Lyria enum for music generation mode (98ff507)

v1.16.1

20 May 00:57
3968dfe
Compare
Choose a tag to compare

1.16.1 (2025-05-20)

Bug Fixes

  • Fix broken tool use in generate content. (bad81ad)

v1.16.0

19 May 23:19
646528f
Compare
Choose a tag to compare

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

  • Add docs for enum fields (2634e01)
  • Regenerate docs for 1.15.0 (a3fc532)

Miscellaneous Chores

  • Fix Lyria method name for JS, update parameters type (0a5d68d)
  • Release 1.16.0 (181d5b7)

v1.15.0

13 May 13:46
c77135f
Compare
Choose a tag to compare

1.15.0 (2025-05-13)

Features

  • Support display_name for Blob class when calling Vertex AI (266da4a)
  • Support tuning checkpoints (26a87ea)
  • Typo fixes in a few files. (b9c9e32)

Bug Fixes

  • Improve thread safety for sync requests (fixes #775) (d88b8d4)

Documentation

  • Improve docs for response_mime_type and response_schema. Relate to #297 (832b715)
  • Regenerate docs for 1.14.0 (32808f3)

v1.14.0

07 May 22:39
957722e
Compare
Choose a tag to compare

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)