Releases: googleapis/java-genai
Releases · googleapis/java-genai
v1.3.0
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_KEYas environment variable for setting API key. (84e7588)
Documentation
- Updating docs to include how to initialize client via environment variables (7fc3e62)
v1.2.0
v1.1.0
v1.0.0
1.0.0 (2025-05-19)
⚠ BREAKING CHANGES
- Support java.time.Instant and java.time.Duration for time/duration fields
Features
- add
time range filterto 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
Miscellaneous Chores
- release 1.0.0 (d4561d7)
v0.8.0
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
Miscellaneous Chores
- mark *Parameters classes as internal (77c9d71)
v0.7.0
0.7.0 (2025-05-06)
⚠ BREAKING CHANGES
- Rename getVideoOperation to getVideosOperation for Java SDK
Features
- Add
Tool.enterprise_web_searchfield (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
v0.6.0
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
defaultfield 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
v0.4.0
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
orElseGetto defer loading of default credentials. (bc19d79) - Use
orElseGetto 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)