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 @@
{
".": "4.25.0"
".": "4.26.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 147
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9c802d45a9bf2a896b5fd22ac22bba185e8a145bd40ed242df9bb87a05e954eb.yml
openapi_spec_hash: 97984ed69285e660b7d5c810c69ed449
config_hash: acb0b1eb5d7284bfedaddb29f7f5a691
config_hash: 8240b8a7a7fc145a45b93bda435612d6
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.26.0 (2026-03-05)

Full Changelog: [v4.25.0...v4.26.0](https://github.com/openai/openai-java/compare/v4.25.0...v4.26.0)

### Features

* **api:** The GA ComputerTool now uses the CompuerTool class. The 'computer_use_preview' tool is moved to ComputerUsePreview ([a8d8de8](https://github.com/openai/openai-java/commit/a8d8de803d9df873eb13ecd912cdea096532a062))


### Bug Fixes

* **api:** update structured response tool overloads ([5562fc1](https://github.com/openai/openai-java/commit/5562fc13a259d567aa03c59f36e74825effa53da))

## 4.25.0 (2026-03-05)

Full Changelog: [v4.24.1...v4.25.0](https://github.com/openai/openai-java/compare/v4.24.1...v4.25.0)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.25.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.25.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.25.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.26.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.26.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.26.0)

<!-- x-release-please-end -->

The OpenAI Java SDK provides convenient access to the [OpenAI REST API](https://platform.openai.com/docs) from applications written in Java.

<!-- x-release-please-start-version -->

The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/4.25.0).
The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/4.26.0).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
### Gradle

```kotlin
implementation("com.openai:openai-java:4.25.0")
implementation("com.openai:openai-java:4.26.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.openai:openai-java:4.25.0")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java</artifactId>
<version>4.25.0</version>
<version>4.26.0</version>
</dependency>
```

Expand Down Expand Up @@ -1342,7 +1342,7 @@ If you're using Spring Boot, then you can use the SDK's [Spring Boot starter](ht
#### Gradle

```kotlin
implementation("com.openai:openai-java-spring-boot-starter:4.25.0")
implementation("com.openai:openai-java-spring-boot-starter:4.26.0")
```

#### Maven
Expand All @@ -1351,7 +1351,7 @@ implementation("com.openai:openai-java-spring-boot-starter:4.25.0")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java-spring-boot-starter</artifactId>
<version>4.25.0</version>
<version>4.26.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.openai"
version = "4.25.0" // x-release-please-version
version = "4.26.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
import com.openai.models.graders.gradermodels.EvalContentItem
import com.openai.models.responses.ApplyPatchTool
import com.openai.models.responses.ComputerTool
import com.openai.models.responses.ComputerUseTool
import com.openai.models.responses.ComputerUsePreviewTool
import com.openai.models.responses.CustomTool
import com.openai.models.responses.FileSearchTool
import com.openai.models.responses.FunctionShellTool
Expand Down Expand Up @@ -6383,13 +6383,13 @@ private constructor(
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())

/** Alias for calling [addTool] with `Tool.ofComputer(computer)`. */
fun addTool(computer: ComputerUseTool) = addTool(Tool.ofComputer(computer))
fun addTool(computer: ComputerTool) = addTool(Tool.ofComputer(computer))

/**
* Alias for calling [addTool] with
* `Tool.ofComputerUsePreview(computerUsePreview)`.
*/
fun addTool(computerUsePreview: ComputerTool) =
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
addTool(Tool.ofComputerUsePreview(computerUsePreview))

/** Alias for calling [addTool] with `Tool.ofWebSearch(webSearch)`. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import com.openai.models.ResponseFormatText
import com.openai.models.graders.gradermodels.EvalContentItem
import com.openai.models.responses.ApplyPatchTool
import com.openai.models.responses.ComputerTool
import com.openai.models.responses.ComputerUseTool
import com.openai.models.responses.ComputerUsePreviewTool
import com.openai.models.responses.CustomTool
import com.openai.models.responses.FileSearchTool
import com.openai.models.responses.FunctionShellTool
Expand Down Expand Up @@ -6268,13 +6268,13 @@ private constructor(
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())

/** Alias for calling [addTool] with `Tool.ofComputer(computer)`. */
fun addTool(computer: ComputerUseTool) = addTool(Tool.ofComputer(computer))
fun addTool(computer: ComputerTool) = addTool(Tool.ofComputer(computer))

/**
* Alias for calling [addTool] with
* `Tool.ofComputerUsePreview(computerUsePreview)`.
*/
fun addTool(computerUsePreview: ComputerTool) =
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
addTool(Tool.ofComputerUsePreview(computerUsePreview))

/** Alias for calling [addTool] with `Tool.ofWebSearch(webSearch)`. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
import com.openai.models.graders.gradermodels.EvalContentItem
import com.openai.models.responses.ApplyPatchTool
import com.openai.models.responses.ComputerTool
import com.openai.models.responses.ComputerUseTool
import com.openai.models.responses.ComputerUsePreviewTool
import com.openai.models.responses.CustomTool
import com.openai.models.responses.FileSearchTool
import com.openai.models.responses.FunctionShellTool
Expand Down Expand Up @@ -6383,13 +6383,13 @@ private constructor(
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())

/** Alias for calling [addTool] with `Tool.ofComputer(computer)`. */
fun addTool(computer: ComputerUseTool) = addTool(Tool.ofComputer(computer))
fun addTool(computer: ComputerTool) = addTool(Tool.ofComputer(computer))

/**
* Alias for calling [addTool] with
* `Tool.ofComputerUsePreview(computerUsePreview)`.
*/
fun addTool(computerUsePreview: ComputerTool) =
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
addTool(Tool.ofComputerUsePreview(computerUsePreview))

/** Alias for calling [addTool] with `Tool.ofWebSearch(webSearch)`. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
import com.openai.models.graders.gradermodels.EvalContentItem
import com.openai.models.responses.ApplyPatchTool
import com.openai.models.responses.ComputerTool
import com.openai.models.responses.ComputerUseTool
import com.openai.models.responses.ComputerUsePreviewTool
import com.openai.models.responses.CustomTool
import com.openai.models.responses.FileSearchTool
import com.openai.models.responses.FunctionShellTool
Expand Down Expand Up @@ -6383,13 +6383,13 @@ private constructor(
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())

/** Alias for calling [addTool] with `Tool.ofComputer(computer)`. */
fun addTool(computer: ComputerUseTool) = addTool(Tool.ofComputer(computer))
fun addTool(computer: ComputerTool) = addTool(Tool.ofComputer(computer))

/**
* Alias for calling [addTool] with
* `Tool.ofComputerUsePreview(computerUsePreview)`.
*/
fun addTool(computerUsePreview: ComputerTool) =
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
addTool(Tool.ofComputerUsePreview(computerUsePreview))

/** Alias for calling [addTool] with `Tool.ofWebSearch(webSearch)`. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
import com.openai.models.graders.gradermodels.EvalContentItem
import com.openai.models.responses.ApplyPatchTool
import com.openai.models.responses.ComputerTool
import com.openai.models.responses.ComputerUseTool
import com.openai.models.responses.ComputerUsePreviewTool
import com.openai.models.responses.CustomTool
import com.openai.models.responses.FileSearchTool
import com.openai.models.responses.FunctionShellTool
Expand Down Expand Up @@ -6383,13 +6383,13 @@ private constructor(
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())

/** Alias for calling [addTool] with `Tool.ofComputer(computer)`. */
fun addTool(computer: ComputerUseTool) = addTool(Tool.ofComputer(computer))
fun addTool(computer: ComputerTool) = addTool(Tool.ofComputer(computer))

/**
* Alias for calling [addTool] with
* `Tool.ofComputerUsePreview(computerUsePreview)`.
*/
fun addTool(computerUsePreview: ComputerTool) =
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
addTool(Tool.ofComputerUsePreview(computerUsePreview))

/** Alias for calling [addTool] with `Tool.ofWebSearch(webSearch)`. */
Expand Down
Loading