Releases: googleapis/java-genai
Releases · googleapis/java-genai
v1.32.0
v1.31.0
v1.30.0
v1.29.0
1.29.0 (2025-12-03)
Features
- Add empty response for tunings.cancel() (57218f5)
Bug Fixes
- Match the versions of the Java Protobuf and Google API Common dependencies (com.google.protobuf:protobuf-java:3.25.5 & com.google.api:api-common:2.45.0) with Google Cloud Java SDKs. (6c37f58)
Documentation
- Recommend using response_json_schema in error messages and docstrings. (6b952e9)
v1.28.0
1.28.0 (2025-11-17)
Features
- add display name to FunctionResponseBlob (8db8c57)
- add display name to FunctionResponseFileData (f5ee8b7)
- Add generate_content_config.thinking_level (a47df92)
- Add image output options to ImageConfig for Vertex (3eac0b8)
- Add part.media_resolution (a47df92)
- support Function call argument streaming for all languages (f310452)
- support upload to file search stores (7862ce3)
v1.27.0
1.27.0 (2025-11-12)
Features
- Add
images()convenience method toGenerateImagesResponse(155df8d) - Add EvaluationConfig support to tune() in Java (795cf73)
- Automatically set response type in FunctionDeclaration during the AFC (5ce99df)
- Support overriding the max read length in the JSON parser (29d2fca)
Bug Fixes
- Add missing fields to the model types (7b7b41f)
- Fix base_steps parameter for recontext_image (85aaa79)
- Fix models.list() filter parameter (123ada5)
Documentation
- Add README for Files API (6d206aa)
v1.26.0
1.26.0 (2025-11-05)
Features
- Add clearXxx methods to data type builders (a4900c9)
- add complete stats to BatchJob (659c65c)
- Add FileSearch tool and associated FileSearchStore management APIs (8ada6ef)
- Add image_size to ImageConfig (Early Access Program) (c1af981)
- Added phish filtering feature. (ed4e12c)
- Return response headers for generateContentStream (82a8118)
- Support lists as function parameters in AFC (fixes #527) (452d2e5)
Bug Fixes
- disable AFC when there are AFC incompatible tool presented. (6099d87)
Documentation
v1.25.0
1.25.0 (2025-10-29)
Features
- Add safety_filter_level and person_generation for Imagen upscaling (09a8075)
- Add support for preference optimization tuning in the SDK. (5d4123c)
- Added Operations.get which is a generic method which will handle all Operation types. (c1dc32f)
- Pass file name to the backend when uploading with a file path (081a9a6)
- support default global location when not using api key with vertexai backend (f9028a7)
- Support retries in API requests (3d5de00)
Documentation
v1.24.0
1.24.0 (2025-10-22)
Features
- Add enable_enhanced_civic_answers in GenerationConfig (684a2c5)
- support createEmbeddings in Batches.java (8947f6f)
- support jailbreak in HarmCategory and BlockedReason (3dab40b)
Bug Fixes
- Make async methods in Batches module truly non-blocking (f2ae75a)
- Make async methods in Caches, Tuning, and Operations modules truly non-blocking (db56239)
- Make async methods in Models module truly non-blocking (c205d01)
Breaking Changes
- Removed
GenerationConfigThinkingConfigbecause it was a duplicate ofThinkingConfig. While this type was not intended for external use, if you happen to be using it, please migrate toThinkingConfig.