Skip to content

Releases: googleapis/python-genai

v1.46.0

21 Oct 22:48
23d37b7

Choose a tag to compare

1.46.0 (2025-10-21)

Features

  • Add enable_enhanced_civic_answers in GenerationConfig (6c1dae7)
  • Support custom httpx clients (694a6bd)
  • Support jailbreak in HarmCategory and BlockedReason (011e218)

Bug Fixes

  • Remove bytes for Gemini Developer API before sending a video for Veo Video Extension async (9ccc6ce)

Documentation

  • Regenerate docs for 1.45.0 (9b7632d)
  • Update README with Gempix example (nano-banana) (ac2bc42)

v1.45.0

15 Oct 22:56
d4da4c5

Choose a tag to compare

1.45.0 (2025-10-15)

Features

  • Add support for Python 3.14. (f0083a2)

Bug Fixes

  • Keys in Live API tool responses are incorrectly re-cased (57a4765)

v1.44.0

15 Oct 03:23
df09def

Choose a tag to compare

1.44.0 (2025-10-15)

Features

  • Support fully override base_url and raw model name when none of the project, locations, api_key are configured (160997e)
  • Support video extension for Veo on Gemini Developer API (341ea77)

Bug Fixes

  • Avoid potential dual import confusion in type assert (9cc4a72)

Documentation

v1.43.0

10 Oct 23:07
8b53e88

Choose a tag to compare

1.43.0 (2025-10-10)

Features

  • Enable Google Maps tool for Genai. (dc77a1d)
  • Support enableWidget feature in GoogleMaps (1737f72)
  • Support Gemini batch inline request's metadata and add test coverage to safety setting (7dcc969)

Documentation

  • Regenerate updated Python docs (e6989a3)

v1.42.0

08 Oct 22:03
88b76d3

Choose a tag to compare

1.42.0 (2025-10-08)

Features

  • Add labels field to Imagen configs (cdba4c9)
  • Add utility methods for creating FunctionResponsePart and creating FunctionResponse Part with FunctionResponseParts (72c92d8)
  • Enable Ingredients to Video and Advanced Controls for Veo on Gemini Developer API (Early Access Program) (9c02a07)

Bug Fixes

  • Avoid potential dual import for content type assertion (83d7973)
  • Increase READ_BUFFER_SIZE in _api_client.py for streaming large chunks in new model (981bba7)
  • Make t_part and t_content conform to their type annotations: they now handle FileDict correctly and t_contents handles PartUnionDict correctly. (0933632)

v1.41.0

02 Oct 22:21
d7fb199

Choose a tag to compare

1.41.0 (2025-10-02)

Features

  • Add NO_IMAGE enum value to FinishReason (3877044)
  • Add thinking_config for live (0fa183c)

Bug Fixes

  • Fix validation for image_config (efaa574)

Documentation

  • Regenerate updated Python docs (53e7bd8)

v1.40.0

01 Oct 23:28
8d1d000

Choose a tag to compare

1.40.0 (2025-10-01)

Features

  • Add ImageConfig to GenerateContentConfig (88088df)
  • Expose session id in Live API (1692f23)
  • Rename ComputerUse tool (early access) (aaac8d8)

Bug Fixes

  • Resolve potential mem leak on deletion of Client when using async (538c755)
  • Resolve unclosed client session warning. (043a392)

v1.39.1

26 Sep 20:49
5c4d7ee

Choose a tag to compare

1.39.1 (2025-09-26)

Bug Fixes

  • Unbreak client closed errors when using vertexai session service (a0882bd)

Documentation

  • Regenerate updated Python docs (4343332)

v1.39.0

25 Sep 21:05
71bc167

Choose a tag to compare

1.39.0 (2025-09-25)

Features

  • Add FunctionResponsePart & ToolComputerUse.excludedPredefinedFunctions (aa7e3c2)
  • Allow custom headers in file upload requests. (1aad1e9)
  • Support explicitly closing the client and context manager (f982dfb)
  • Support Imagen 4 Ingredients on Vertex (1fe3bec)

Bug Fixes

  • Expose JOB_STATE_RUNNING and JOB_STATE_EXPIRED for Gemini Batches states (739f72d)
  • Fix AFC logging (249f1af)
  • Fix Max Depth repr for containers (dict, list, ...) (6ef3db8)
  • Initialization of pre_tuned_model_checkpoint_id from tuning config. (1d3d28a)
  • Remove unclosed client session message when sharing aiohttp ClientSession (8cee513)

v1.38.0

16 Sep 23:15
4151615

Choose a tag to compare

1.38.0 (2025-09-16)

Features

  • Add 'turn_complete_reason' and 'waiting_for_input' fields. (c1f57a5)

Bug Fixes

  • Skip aiohttp related tests when package is not installed (50badf6)

Documentation

  • Regenerate docs for 1.37.0 (1631b2e)