Skip to content

Commit a8d8de8

Browse files
feat(api): The GA ComputerTool now uses the CompuerTool class. The 'computer_use_preview' tool is moved to ComputerUsePreview
This fixes naming of the old computer_use_preview, which previously took the ComputerTool name. There is a newly GAed `computer` tool now available, which will use the ComputerTool name. This may be a breaking change for users of the preview tool.
1 parent 4ca5408 commit a8d8de8

20 files changed

Lines changed: 580 additions & 574 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 147
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9c802d45a9bf2a896b5fd22ac22bba185e8a145bd40ed242df9bb87a05e954eb.yml
33
openapi_spec_hash: 97984ed69285e660b7d5c810c69ed449
4-
config_hash: acb0b1eb5d7284bfedaddb29f7f5a691
4+
config_hash: 8240b8a7a7fc145a45b93bda435612d6

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
3232
import com.openai.models.graders.gradermodels.EvalContentItem
3333
import com.openai.models.responses.ApplyPatchTool
3434
import com.openai.models.responses.ComputerTool
35-
import com.openai.models.responses.ComputerUseTool
35+
import com.openai.models.responses.ComputerUsePreviewTool
3636
import com.openai.models.responses.CustomTool
3737
import com.openai.models.responses.FileSearchTool
3838
import com.openai.models.responses.FunctionShellTool
@@ -6383,13 +6383,13 @@ private constructor(
63836383
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())
63846384

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

63886388
/**
63896389
* Alias for calling [addTool] with
63906390
* `Tool.ofComputerUsePreview(computerUsePreview)`.
63916391
*/
6392-
fun addTool(computerUsePreview: ComputerTool) =
6392+
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
63936393
addTool(Tool.ofComputerUsePreview(computerUsePreview))
63946394

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

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import com.openai.models.ResponseFormatText
3535
import com.openai.models.graders.gradermodels.EvalContentItem
3636
import com.openai.models.responses.ApplyPatchTool
3737
import com.openai.models.responses.ComputerTool
38-
import com.openai.models.responses.ComputerUseTool
38+
import com.openai.models.responses.ComputerUsePreviewTool
3939
import com.openai.models.responses.CustomTool
4040
import com.openai.models.responses.FileSearchTool
4141
import com.openai.models.responses.FunctionShellTool
@@ -6268,13 +6268,13 @@ private constructor(
62686268
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())
62696269

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

62736273
/**
62746274
* Alias for calling [addTool] with
62756275
* `Tool.ofComputerUsePreview(computerUsePreview)`.
62766276
*/
6277-
fun addTool(computerUsePreview: ComputerTool) =
6277+
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
62786278
addTool(Tool.ofComputerUsePreview(computerUsePreview))
62796279

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

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
3232
import com.openai.models.graders.gradermodels.EvalContentItem
3333
import com.openai.models.responses.ApplyPatchTool
3434
import com.openai.models.responses.ComputerTool
35-
import com.openai.models.responses.ComputerUseTool
35+
import com.openai.models.responses.ComputerUsePreviewTool
3636
import com.openai.models.responses.CustomTool
3737
import com.openai.models.responses.FileSearchTool
3838
import com.openai.models.responses.FunctionShellTool
@@ -6383,13 +6383,13 @@ private constructor(
63836383
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())
63846384

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

63886388
/**
63896389
* Alias for calling [addTool] with
63906390
* `Tool.ofComputerUsePreview(computerUsePreview)`.
63916391
*/
6392-
fun addTool(computerUsePreview: ComputerTool) =
6392+
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
63936393
addTool(Tool.ofComputerUsePreview(computerUsePreview))
63946394

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

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
3232
import com.openai.models.graders.gradermodels.EvalContentItem
3333
import com.openai.models.responses.ApplyPatchTool
3434
import com.openai.models.responses.ComputerTool
35-
import com.openai.models.responses.ComputerUseTool
35+
import com.openai.models.responses.ComputerUsePreviewTool
3636
import com.openai.models.responses.CustomTool
3737
import com.openai.models.responses.FileSearchTool
3838
import com.openai.models.responses.FunctionShellTool
@@ -6383,13 +6383,13 @@ private constructor(
63836383
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())
63846384

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

63886388
/**
63896389
* Alias for calling [addTool] with
63906390
* `Tool.ofComputerUsePreview(computerUsePreview)`.
63916391
*/
6392-
fun addTool(computerUsePreview: ComputerTool) =
6392+
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
63936393
addTool(Tool.ofComputerUsePreview(computerUsePreview))
63946394

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

openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import com.openai.models.ResponseFormatText
3232
import com.openai.models.graders.gradermodels.EvalContentItem
3333
import com.openai.models.responses.ApplyPatchTool
3434
import com.openai.models.responses.ComputerTool
35-
import com.openai.models.responses.ComputerUseTool
35+
import com.openai.models.responses.ComputerUsePreviewTool
3636
import com.openai.models.responses.CustomTool
3737
import com.openai.models.responses.FileSearchTool
3838
import com.openai.models.responses.FunctionShellTool
@@ -6383,13 +6383,13 @@ private constructor(
63836383
addTool(FileSearchTool.builder().vectorStoreIds(vectorStoreIds).build())
63846384

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

63886388
/**
63896389
* Alias for calling [addTool] with
63906390
* `Tool.ofComputerUsePreview(computerUsePreview)`.
63916391
*/
6392-
fun addTool(computerUsePreview: ComputerTool) =
6392+
fun addTool(computerUsePreview: ComputerUsePreviewTool) =
63936393
addTool(Tool.ofComputerUsePreview(computerUsePreview))
63946394

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

0 commit comments

Comments
 (0)