Skip to content

Releases: googleapis/go-genai

v1.9.0

04 Jun 23:03
d00f85e
Compare
Choose a tag to compare

1.9.0 (2025-06-04)

Features

  • Add enhance_prompt field for Gemini Developer API generate_videos (04c9207)
  • Enable url_context for Vertex (6ca5b9c)
  • go: Support GEMINI_API_KEY as environment variable for setting API key. (83ba1e0)

v1.8.0

30 May 23:47
3be81f9
Compare
Choose a tag to compare

1.8.0 (2025-05-30)

Features

  • Adding thought_signature field to the Part to store the signature for thoughts. (080fd90)
  • include UNEXPECTED_TOOL_CALL enum value to FinishReason for Vertex AI APIs. (03f0ea1)

Bug Fixes

  • Rename LiveEphemeralParameters to LiveConnectConstraints. (e7c5ee7)

v1.7.0

28 May 22:54
ca77740
Compare
Choose a tag to compare

1.7.0 (2025-05-28)

Features

  • Add generate_audio field for private testing of video generation (d48d6f3)
  • support new fields in FileData, GenerationConfig, GroundingChunkRetrievedContext, RetrievalConfig, Schema, TuningJob, VertexAISearch, (9331c82)

Bug Fixes

  • use correct mimetype for image content (#301) (ddc69b8)

v1.6.0

19 May 18:10
6833d18
Compare
Choose a tag to compare

1.6.0 (2025-05-19)

Features

  • add time range filter to Google Search Tool (02bec9d)
  • Add basic support for async function calling. (514cf37)
  • add live proactivity_audio and enable_affective_dialog (a72f5ce)
  • add multi-speaker voice config (aae87a9)
  • Add support for lat/long in search. (0e2ba95)
  • Add Video FPS, and enable start/end_offset for MLDev (fa403ac)
  • support customer-managed encryption key in cached content (a8a6dc2)
  • Support Url Context Retrieval tool (7bf9acc)

Bug Fixes

  • fix SendMessageStream when iterator callback returns false. fixes #310 (08cf7d9)

v1.5.0

13 May 14:19
ebca052
Compare
Choose a tag to compare

1.5.0 (2025-05-13)

Features

  • Add Send and SendStream to chats module. Related to #295 (f2f8041)
  • support display_name for Blob class when calling Vertex AI (10b5438)
  • Support tuning checkpoints (c65e033)

v1.4.0

08 May 15:51
d750d26
Compare
Choose a tag to compare

1.4.0 (2025-05-08)

Features

  • Add Tool.enterprise_web_search field (452d379)
  • Add support for Grounding with Google Maps (76c6472)
  • enable input transcription for Gemini API. (f1ccf67)

Bug Fixes

  • add retry logic for missing X-Goog-Upload-Status header for golang (1a25f15)

v1.3.0

01 May 00:04
bb8c125
Compare
Choose a tag to compare

1.3.0 (2025-04-30)

Features

  • add models.delete and models.update to manage tuned models (6f5bbed)
  • add NewPartFromFile for File type convenience. Related to #281 (2ac0429)
  • add support for live grounding metadata (9ce2ed9)
  • make min_property, max_property, min_length, max_length, example, patter fields available for Schema class when calling Gemini API (b487724)
  • Populate X-Server-Timeout header when a request timeout is set. (8f446a0)
  • Support setting the default base URL in clients via SetDefaultBaseURLs() (f465a20)

Bug Fixes

  • do not raise error for default field in Schema for Gemini API calls (ec31e4b)
  • do not remove content parts with Text unset. (b967057)
  • files: deep copy config struct before modifying it. (a6b0fd6)

v1.2.0

23 Apr 20:24
5c4dbb8
Compare
Choose a tag to compare

1.2.0 (2025-04-23)

Features

  • add additional realtime input fields (1190539)
  • Expose transcription configurations for audio in TS, and move generationConfig to the top level LiveConnectConfig (ead7e49)
  • support default field in Schema when users call Gemini API (643eb80)

v1.1.0

16 Apr 21:16
6ac4afc
Compare
Choose a tag to compare

1.1.0 (2025-04-16)

Features

  • Add converters to support continuous sessions with a sliding window (97bbba4)
  • add support for model_selection_config to GenerateContentConfig (a44a6c7)
  • Add types for configurable speech detection (658c17a)
  • Support audio transcription in Vertex Live API (f09dfab)
  • Support RealtimeInputConfig, and language_code in SpeechConfig in python (f90a0ec)
  • Update VertexRagStore (62d582c)

Bug Fixes

  • files: use io.ReadFull to read the file. fixes #237 (908c783)
  • Fix error "assignment to entry in nil map" of Files.Upload() when config.HTTPOptions is nil (#235) (05c0c49)
  • fix MIME type error in UploadFromPath and add unit tests. fixes: #247 (f851639)

v1.0.0

09 Apr 03:57
7bbe1ea
Compare
Choose a tag to compare

1.0.0 (2025-04-09)

⚠ BREAKING CHANGES

  • Support SendClientContent/SendRealtimeInput/SendToolResponse methods in Session struct and remove Send method
  • Merge GenerationConfig to LiveConnectConfig. GenerationConfig is removed.
  • Change NewContentFrom... functions role param type from string to Role and miscs docstring improvements
  • Change some pointer to value type and value to pointer type

Features

  • Add domain to Web GroundingChunk (183ac49)
  • Add generationComplete notification to Live ServerContent (9a038b9)
  • Add session resumption to Live module (4a92461)
  • add session resumption. (507137b)
  • Add support for Chats streaming in Go SDK (9ee0523)
  • Add thinking_budget to ThinkingConfig for Gemini Thinking Models (f811ee4)
  • Add traffic type to GenerateContentResponseUsageMetadata (601add2)
  • Add types for configurable speech detection (f4e1b11)
  • Add types to support continuous sessions with a sliding window (5d4f5d7)
  • Add UsageMetadata to LiveServerMessage (4286c6b)
  • expose generation_complete, input/output_transcription & input/output_audio_transcription to SDK for Vertex Live API (0dbbc82)
  • Merge GenerationConfig to LiveConnectConfig. GenerationConfig is removed. (65b7c1c)
  • Remove experimental warnings for generate_videos and operations (2e4bb0b)
  • Support files delete, get, list, download/ (8e7b3fd)
  • Support files upload method (ce790dd)
  • support media resolution (825c81d)
  • Support SendClientContent/SendRealtimeInput/SendToolResponse methods in Session struct and remove Send method (c8ecaf4)
  • use io.Reader in Upload function and add a new convenience function UploadFromPath. fixes #222 (1c064e3)

Bug Fixes

  • Change NewContentFrom... functions role param type from string to Role and miscs docstring improvements (7810e07)
  • Change some pointer to value type and value to pointer type (0d2ba97)
  • fix Add() dead loop (afa2324)
  • Fix failing chat_test (aebbdaa)