Releases: googleapis/java-genai
Releases · googleapis/java-genai
v0.3.0
0.3.0 (2025-03-28)
⚠ BREAKING CHANGES
- Only expose
toJsonandfromJsonas public methods in JsonSerializable - Rename
Client.isVertexAI()toClient.vertexAI()to align with other places - change bytes datatype from String to byte[] to avoid potential data loss
Features
- Add client.models.embedContent methods (02f177c)
- Add engine to VertexAISearch (8ed56ad)
- add IMAGE_SAFTY enum value to FinishReason (02ee351)
- Add Imagen edit_image support in Java SDK (4ae1366)
- Add quick constructors for Content and Part (2ff9e86)
- Add response_id and create_time to GenerateContentResponse (f52e068)
- Add sendClientContent, sendRealtimeInput, sendToolResponse to live session (dbd9cf7)
- add types for Live API (2cdb435)
- allow title property to be sent to Gemini API. Gemini API now supports the title property, so it's ok to pass this onto both Vertex and Gemini API. (9afeedc)
- enable minItem, maxItem, nullable for Schema type when calling Gemini API. (5975a55)
- enable union type for Schema when calling Gemini API. (3d26960)
- Save prompt safety attributes in dedicated field for generate_images (c8c5aaf)
- Support aspect ratio for edit_image (7742349)
- Support global endpoint in java natively (77e364e)
- Support Live API (5741147)
- support new UsageMetadata fields (062cbe0)
- Support returned safety attributes for generate_images (ae6f5e4)
- throw error when given method is not supported in Gemini API or Vertex AI (f055ad8)
Bug Fixes
- change bytes datatype from String to byte[] to avoid potential data loss (9979823)
- Getter methods in Client will return null rather than throw exceptions when the value is not set (c1b0290)
- log warning instead of throw error in GenerateContentResponse.text() quick accessor when there are mixed types of parts in the response. (13c5ccf)
- Only expose
toJsonandfromJsonas public methods in JsonSerializable (dbef8b4) - Remove unsupported parameter negative_prompt from Gemini API generate_images (1d881d9)
- Rename
Client.isVertexAI()toClient.vertexAI()to align with other places (4211ca1) - schema transformer logic fix. (e6ab7d5)
- set default scope in VertexAI client ADC (15aeede)
- Set partial httpOptions in the Client will override all other options to empty (46369a7)
v0.2.0
0.2.0 (2025-02-24)
Features
- Add Imagen upscale_image support for Java (7eb172f)
- Enable Media resolution for Gemini API. (30c8aa6)
- provide executable code and code execution result quick accessors for GenerateContentResponse class (548f8c3)
- support property_ordering in response_schema (fixes #236) (814aa6f)
Bug Fixes
- Fix private class/method generation for Java SDK (0c4f1f8)
- Set request content-type encoding to UTF-8 (#56) (09329f7)
Documentation
- Update the model to gemini-2.0-flash-001 in the docs and the examples. (a4bc69a)