Skip to content

Releases: googleapis/python-genai

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)

v1.13.0

30 Apr 23:02
87dba44
Compare
Choose a tag to compare

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 as dict or types.Schema. (48eebe0)

Documentation

  • Add a link for where to find the Google Cloud project id, API key and location (916bd6e)

v1.12.1

24 Apr 16:31
e378ca9
Compare
Choose a tag to compare

1.12.1 (2025-04-24)

Bug Fixes

  • Fix required import of Pillow (f23772d)
  • Remove del in client (83394b8)

v1.12.0

23 Apr 21:11
54f6515
Compare
Choose a tag to compare

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

16 Apr 21:15
79bfaf6
Compare
Choose a tag to compare

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

  • Get SSL_CERT_FILE or SSL_CERT_DIR environment variables for proper SSL handshake in API client. They are not automatically retrieved in httpx (5782a5f)
  • Update tests to use the pro 2.5 model gemini-2.5-pro-preview-03-25 (fde4a8a)

v1.10.0

09 Apr 03:23
369385c
Compare
Choose a tag to compare

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

v1.9.0

01 Apr 01:44
bfa0a8d
Compare
Choose a tag to compare

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

  • Make response arg in APIError class constructor optional. #572 (7b3f4a4)

Documentation