Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.37.0"
".": "1.36.0"
}
13 changes: 0 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# Changelog

## [1.37.0](https://github.com/googleapis/java-genai/compare/v1.36.0...v1.37.0) (2026-01-30)


### Features

* Support distillation tuning ([cec1b88](https://github.com/googleapis/java-genai/commit/cec1b88ab5a8d5cb801f4db19ce73f3f01732c70))
* Support OSS Tuning in GenAI SDK ([868d8ed](https://github.com/googleapis/java-genai/commit/868d8edee6a449937ed8b74f909071d8496fc68f))


### Bug Fixes

* Add metadata in batch inlined response ([c80dd07](https://github.com/googleapis/java-genai/commit/c80dd070d9f23ec6463e7e704f003ffb4dba354c))

## [1.36.0](https://github.com/googleapis/java-genai/compare/v1.35.0...v1.36.0) (2026-01-22)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you're using Maven, add the following to your dependencies:
<dependency>
<groupId>com.google.genai</groupId>
<artifactId>google-genai</artifactId>
<version>1.37.0</version>
<version>1.36.0</version>
</dependency>
</dependencies>
```
Expand Down
4 changes: 2 additions & 2 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

<groupId>com.google.genai.examples</groupId>
<artifactId>google-genai-examples</artifactId>
<version>1.37.0</version><!-- {x-version-update:google-genai:current} -->
<version>1.37.0-SNAPSHOT</version><!-- {x-version-update:google-genai:current} -->
<name>google-genai-examples</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- {x-version-update-start:google-genai:current} -->
<google-genai.version>1.37.0</google-genai.version>
<google-genai.version>1.37.0-SNAPSHOT</google-genai.version>
<!-- {x-version-update-end} -->
</properties>
<build>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.google.genai</groupId>
<artifactId>google-genai</artifactId>
<name>google-genai</name>
<version>1.37.0</version><!-- {x-version-update:google-genai:current} -->
<version>1.37.0-SNAPSHOT</version><!-- {x-version-update:google-genai:current} -->
<packaging>jar</packaging>
<description>
Java idiomatic SDK for the Gemini Developer APIs and Vertex AI APIs.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/genai/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
public abstract class ApiClient {

// {x-version-update-start:google-genai:released}
private static final String SDK_VERSION = "1.37.0";
private static final String SDK_VERSION = "1.36.0";
// {x-version-update-end:google-genai:released}
private static final Logger logger = Logger.getLogger(ApiClient.class.getName());

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/google/genai/AsyncBatches.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public AsyncBatches(ApiClient apiClient) {

CompletableFuture<BatchJob> privateCreate(
String model, BatchJobSource src, CreateBatchJobConfig config) {

BuiltRequest builtRequest = batches.buildRequestForPrivateCreate(model, src, config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -62,6 +63,7 @@ CompletableFuture<BatchJob> privateCreate(

CompletableFuture<BatchJob> privateCreateEmbeddings(
String model, EmbeddingsBatchJobSource src, CreateEmbeddingsBatchJobConfig config) {

BuiltRequest builtRequest = batches.buildRequestForPrivateCreateEmbeddings(model, src, config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -83,6 +85,7 @@ CompletableFuture<BatchJob> privateCreateEmbeddings(
* @return A {@link BatchJob} object that contains the info of the batch job.
*/
public CompletableFuture<BatchJob> get(String name, GetBatchJobConfig config) {

BuiltRequest builtRequest = batches.buildRequestForGet(name, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -103,6 +106,7 @@ public CompletableFuture<BatchJob> get(String name, GetBatchJobConfig config) {
* @param config A {@link CancelBatchJobConfig} for configuring the cancel request.
*/
public CompletableFuture<Void> cancel(String name, CancelBatchJobConfig config) {

BuiltRequest builtRequest = batches.buildRequestForCancel(name, config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -113,6 +117,7 @@ public CompletableFuture<Void> cancel(String name, CancelBatchJobConfig config)
}

CompletableFuture<ListBatchJobsResponse> privateList(ListBatchJobsConfig config) {

BuiltRequest builtRequest = batches.buildRequestForPrivateList(config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -133,6 +138,7 @@ CompletableFuture<ListBatchJobsResponse> privateList(ListBatchJobsConfig config)
* @param config A {@link DeleteBatchJobConfig} for configuring the delete request.
*/
public CompletableFuture<DeleteResourceJob> delete(String name, DeleteBatchJobConfig config) {

BuiltRequest builtRequest = batches.buildRequestForDelete(name, config);
return this.apiClient
.asyncRequest(
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/google/genai/AsyncCaches.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public AsyncCaches(ApiClient apiClient) {
* @return A {@link CachedContent} object that contains the info of the created resource.
*/
public CompletableFuture<CachedContent> create(String model, CreateCachedContentConfig config) {

BuiltRequest builtRequest = caches.buildRequestForCreate(model, config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -71,6 +72,7 @@ public CompletableFuture<CachedContent> create(String model, CreateCachedContent
* @return A {@link CachedContent} object that contains the info of the cached content.
*/
public CompletableFuture<CachedContent> get(String name, GetCachedContentConfig config) {

BuiltRequest builtRequest = caches.buildRequestForGet(name, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -90,6 +92,7 @@ public CompletableFuture<CachedContent> get(String name, GetCachedContentConfig
*/
public CompletableFuture<DeleteCachedContentResponse> delete(
String name, DeleteCachedContentConfig config) {

BuiltRequest builtRequest = caches.buildRequestForDelete(name, config);
return this.apiClient
.asyncRequest(
Expand All @@ -110,6 +113,7 @@ public CompletableFuture<DeleteCachedContentResponse> delete(
* @return A {@link CachedContent} object that contains the info of the updated resource.
*/
public CompletableFuture<CachedContent> update(String name, UpdateCachedContentConfig config) {

BuiltRequest builtRequest = caches.buildRequestForUpdate(name, config);
return this.apiClient
.asyncRequest("patch", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -122,6 +126,7 @@ public CompletableFuture<CachedContent> update(String name, UpdateCachedContentC
}

CompletableFuture<ListCachedContentsResponse> privateList(ListCachedContentsConfig config) {

BuiltRequest builtRequest = caches.buildRequestForPrivateList(config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/google/genai/AsyncDocuments.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public AsyncDocuments(ApiClient apiClient) {
}

public CompletableFuture<Document> get(String name, GetDocumentConfig config) {

BuiltRequest builtRequest = documents.buildRequestForGet(name, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -54,6 +55,7 @@ public CompletableFuture<Document> get(String name, GetDocumentConfig config) {
}

public CompletableFuture<Void> delete(String name, DeleteDocumentConfig config) {

BuiltRequest builtRequest = documents.buildRequestForDelete(name, config);
return this.apiClient
.asyncRequest(
Expand All @@ -65,6 +67,7 @@ public CompletableFuture<Void> delete(String name, DeleteDocumentConfig config)
}

CompletableFuture<ListDocumentsResponse> privateList(String parent, ListDocumentsConfig config) {

BuiltRequest builtRequest = documents.buildRequestForPrivateList(parent, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/google/genai/AsyncFileSearchStores.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public AsyncFileSearchStores(ApiClient apiClient) {
}

public CompletableFuture<FileSearchStore> create(CreateFileSearchStoreConfig config) {

BuiltRequest builtRequest = fileSearchStores.buildRequestForCreate(config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -71,6 +72,7 @@ public CompletableFuture<FileSearchStore> create(CreateFileSearchStoreConfig con
}

public CompletableFuture<FileSearchStore> get(String name, GetFileSearchStoreConfig config) {

BuiltRequest builtRequest = fileSearchStores.buildRequestForGet(name, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -83,6 +85,7 @@ public CompletableFuture<FileSearchStore> get(String name, GetFileSearchStoreCon
}

public CompletableFuture<Void> delete(String name, DeleteFileSearchStoreConfig config) {

BuiltRequest builtRequest = fileSearchStores.buildRequestForDelete(name, config);
return this.apiClient
.asyncRequest(
Expand All @@ -94,6 +97,7 @@ public CompletableFuture<Void> delete(String name, DeleteFileSearchStoreConfig c
}

CompletableFuture<ListFileSearchStoresResponse> privateList(ListFileSearchStoresConfig config) {

BuiltRequest builtRequest = fileSearchStores.buildRequestForPrivateList(config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -107,6 +111,7 @@ CompletableFuture<ListFileSearchStoresResponse> privateList(ListFileSearchStores

CompletableFuture<UploadToFileSearchStoreResumableResponse> privateUploadToFileSearchStore(
String fileSearchStoreName, UploadToFileSearchStoreConfig config) {

BuiltRequest builtRequest =
fileSearchStores.buildRequestForPrivateUploadToFileSearchStore(fileSearchStoreName, config);
return this.apiClient
Expand All @@ -122,6 +127,7 @@ CompletableFuture<UploadToFileSearchStoreResumableResponse> privateUploadToFileS

public CompletableFuture<ImportFileOperation> importFile(
String fileSearchStoreName, String fileName, ImportFileConfig config) {

BuiltRequest builtRequest =
fileSearchStores.buildRequestForImportFile(fileSearchStoreName, fileName, config);
return this.apiClient
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/google/genai/AsyncFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public AsyncFiles(ApiClient apiClient) {
}

CompletableFuture<ListFilesResponse> privateList(ListFilesConfig config) {

BuiltRequest builtRequest = files.buildRequestForPrivateList(config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -62,6 +63,7 @@ CompletableFuture<ListFilesResponse> privateList(ListFilesConfig config) {
}

CompletableFuture<CreateFileResponse> privateCreate(File file, CreateFileConfig config) {

BuiltRequest builtRequest = files.buildRequestForPrivateCreate(file, config);
return this.apiClient
.asyncRequest("post", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -81,6 +83,7 @@ CompletableFuture<CreateFileResponse> privateCreate(File file, CreateFileConfig
* @return A File object representing the file.
*/
public CompletableFuture<File> get(String name, GetFileConfig config) {

BuiltRequest builtRequest = files.buildRequestForGet(name, config);
return this.apiClient
.asyncRequest("get", builtRequest.path(), builtRequest.body(), builtRequest.httpOptions())
Expand All @@ -100,6 +103,7 @@ public CompletableFuture<File> get(String name, GetFileConfig config) {
* @return The DeleteFileResponse, the response for the delete method.
*/
public CompletableFuture<DeleteFileResponse> delete(String name, DeleteFileConfig config) {

BuiltRequest builtRequest = files.buildRequestForDelete(name, config);
return this.apiClient
.asyncRequest(
Expand Down
Loading
Loading