Skip to content

Releases: googleapis/java-genai

v1.3.0

04 Jun 23:05
0aa4a1d

Choose a tag to compare

1.3.0 (2025-06-04)

Features

  • Add enhance_prompt field for Gemini Developer API generate_videos (944af16)
  • Enable url_context for Vertex (cc772d8)
  • java: Support GEMINI_API_KEY as environment variable for setting API key. (84e7588)

Documentation

  • Updating docs to include how to initialize client via environment variables (7fc3e62)

v1.2.0

30 May 23:48
9042c56

Choose a tag to compare

1.2.0 (2025-05-30)

Features

  • Adding thought_signature field to the Part to store the signature for thoughts. (dc9c8f7)
  • include UNEXPECTED_TOOL_CALL enum value to FinishReason for Vertex AI APIs. (8186ff0)

Bug Fixes

  • Rename LiveEphemeralParameters to LiveConnectConstraints. (0655609)

v1.1.0

28 May 23:16
a55af85

Choose a tag to compare

1.1.0 (2025-05-28)

Features

  • Add generate_audio field for private testing of video generation (16f2b0f)
  • support new fields in FileData, GenerationConfig, GroundingChunkRetrievedContext, RetrievalConfig, Schema, TuningJob, VertexAISearch, (6bf3d32)

Documentation

  • Fix comment typo for Modality.AUDIO (18dea48), closes #620

v1.0.0

19 May 20:50
94367b8

Choose a tag to compare

1.0.0 (2025-05-19)

⚠ BREAKING CHANGES

  • Support java.time.Instant and java.time.Duration for time/duration fields

Features

  • add time range filter to Google Search Tool (4aba9a6)
  • Add async list methods to Models, Caches, and Files (cde10ab)
  • add async streaming chat (df6446a)
  • add async support for chat (9973df7)
  • Add AsyncPager class (cde10ab)
  • Add basic support for async function calling. (653094a)
  • add Caches.create/delete/get support (c4d17a0)
  • Add client.models.list() method (25883eb)
  • Add Files module with Files.upload, .get and .delete (e211ca1)
  • Add Files.download methods (082c890)
  • Add Image.fromFile() support in Java SDK (4ddcaa1)
  • Add list methods in Caches and Files module (ce6ed85)
  • add live proactivity_audio and enable_affective_dialog (64c20c7)
  • add multi-speaker voice config (1689f77)
  • Add pagination support (25883eb)
  • Add support for lat/long in search. (f43f00f)
  • Add Video FPS, and enable start/end_offset for MLDev (bc1df02)
  • Added Async wrappers for the Files Module operations (b5b608d)
  • enable automatic function calling for Models.generateContent method (ecca800)
  • record automatic function calling history for Chat.sendMessage methods. (7428d87)
  • support customer-managed encryption key in cached content (3021aaf)
  • Support ephemeral token creation in Python (7f33c20)
  • Support java.time.Instant and java.time.Duration for time/duration fields (460d3d3)
  • Support models.get/delete/update in Java (3d8d8ec)
  • Support Url Context Retrieval tool (f4fd37a)
  • Support using ephemeral token in Live session connection in Python (7f33c20)

Bug Fixes

  • bug in validate history (7428d87)
  • Transformers are not being used in list types (a9609db)

Miscellaneous Chores

v0.8.0

13 May 14:41
97afd40

Choose a tag to compare

0.8.0 (2025-05-13)

⚠ BREAKING CHANGES

  • mark *Parameters classes as internal
  • add enum support

Features

  • add Content.text() quick accessor (c184615)
  • add enum support (86b0553)
  • Add httpOptions field to type classes (971177d)
  • add support for audio, video, text and session resumption. (dcd08a4)
  • automatically parse a java.lang.reflect.Method instance into a FunctionDeclaration when users pass it in as a Tool. (e5109a0)
  • enable request level http options(set through XxxConfig) (abbe820)
  • support display_name for Blob class when calling Vertex AI (db33f8a)

Bug Fixes

  • fix import in live sample (78cc345)

Documentation

  • Improve docs for response_mime_type and response_schema. Relate to #297 (4782f56)

Miscellaneous Chores

  • mark *Parameters classes as internal (77c9d71)

v0.7.0

07 May 18:19
5cc4b86

Choose a tag to compare

0.7.0 (2025-05-06)

⚠ BREAKING CHANGES

  • Rename getVideoOperation to getVideosOperation for Java SDK

Features

  • Add Tool.enterprise_web_search field (919c22a)
  • Add computeTokens support (85c751e)
  • Add countTokens method support (8b8fb45)
  • Add support for Grounding with Google Maps (24b1127)
  • enable input transcription for Gemini API. (9065970)
  • http: Make HttpApiClient public (5da0746)

Documentation

  • Add javadoc to public classes/methods (78c2a39)

Code Refactoring

  • Rename getVideoOperation to getVideosOperation for Java SDK (4cd355b)

v0.6.1

01 May 17:12
3cec1b7

Choose a tag to compare

0.6.1 (2025-05-01)

Bug Fixes

  • generateContentStream failed to find converter method GenerateContentResponseFromXxx (590cb98)

Miscellaneous Chores

v0.6.0

01 May 00:12
d1dfe04

Choose a tag to compare

0.6.0 (2025-04-30)

⚠ BREAKING CHANGES

  • add streaming support for Chat

Features

  • add streaming support for Chat (59eca52)
  • add support for live grounding metadata (e90dd15)
  • Enable configurable speech detection in live SDK (d6bfa76)
  • introduce FunctionDeclaration.fromMethod class method to parse a FunctionDeclaration instance from a java.lang.reflect.Method instance. (aeb63b4)
  • make min_property, max_property, min_length, max_length, example, patter fields available for Schema class when calling Gemini API (8527db5)
  • Support continuous window compression in the Live API (7acb98c)
  • Support setting the default base URL in clients via Client.setDefaultBaseUrls() (c119778)

Bug Fixes

  • do not raise error for default field in Schema for Gemini API calls (8bb1c64)
  • Throw IllegalArgumentException rather than general Error when an invalid parameter is passed to Gemini/Vertex backend (1bd4485)
  • Update error message when a service from an unsupported backend is called (4cd81ea)
  • Update Live API websocket base url in java SDK (8c97572)

Documentation

  • add a link for where to find the Google Cloud project id, API key and location (3ac726c)

v0.5.0

23 Apr 21:15
0b477e0

Choose a tag to compare

0.5.0 (2025-04-22)

Features

  • Populate X-Server-Timeout header when a request timeout is set. (7126995)
  • support default field in Schema when users call Gemini API (1d7c48d)

v0.4.0

17 Apr 18:58
9486267

Choose a tag to compare

0.4.0 (2025-04-15)

⚠ BREAKING CHANGES

  • Hide internal classes ApiResponse and Common
  • Move generation config to the top level LiveConnectConfig
  • Remove AsyncSession.sendContent method which was accidentally added
  • No more checked exceptions
  • Remove AsyncSession.sendContent method which was accidentally added
  • No more checked exceptions

Features

  • Add async editImage support for Java SDK (358c896)
  • add Chat module (03442fc)
  • Add domain to Web GroundingChunk (990586b)
  • Add generationComplete notification to Live ServerContent (de5a762)
  • add session resumption. (5c35c52)
  • add support for model_selection_config to GenerateContentConfig (1958d4c)
  • Add thinking_budget to ThinkingConfig for Gemini Thinking Models (a3ea4ed)
  • Add traffic type to GenerateContentResponseUsageMetadata (fac241b)
  • Add types for configurable speech detection (021d74b)
  • Add types to support continuous sessions with a sliding window (d5e8a32)
  • Add UsageMetadata to LiveServerMessage (8b57e99)
  • Add Veo 2 generate_videos support in Java SDK (272649a)
  • expose generation_complete, input/output_transcription & input/output_audio_transcription to SDK for Vertex Live API (e3b517a)
  • merge GenerationConfig into LiveConnectConfig (e2fa59d)
  • No more checked exceptions (e452491)
  • No more checked exceptions (cad9eba)
  • Remove experimental warnings for generate_videos and operations (be93305)
  • Support audio transcription in Vertex Live API (1ddb6d4)
  • support media resolution (ce9e7b0)
  • Support RealtimeInputConfig, and language_code in SpeechConfig in python (f5bd874)
  • Update VertexRagStore (4a75670)

Bug Fixes

  • fix errors in live samples (5a9892f)
  • Move generation config to the top level LiveConnectConfig (c71e78e)
  • Remove AsyncSession.sendContent method which was accidentally added (e452491)
  • Remove AsyncSession.sendContent method which was accidentally added (cad9eba)
  • schema handling in transformer (8064028)
  • Use orElseGet to defer loading of default credentials. (bc19d79)
  • Use orElseGet to defer loading of default credentials. (#124) (6adac0e)

Documentation

  • Add examples for embedContent (7583ddf)
  • docstring improvements (9d0ca34)
  • Update examples and README after removing checked exceptions (5cb6ee5)

Code Refactoring

  • Hide internal classes ApiResponse and Common (6218143)