Skip to content

Commit 48f4628

Browse files
fix(responses): correct computer use enum value (#2180)
1 parent afabec1 commit 48f4628

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 81
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-be834d63e326a82494e819085137f5eb15866f3fc787db1f3afe7168d419e18a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-9ce5257763fb30c6e0e1ee2bef7e13baf661511e09572207e528d643da8e16b3.yml

src/openai/types/responses/computer_tool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ class ComputerTool(BaseModel):
1717
environment: Literal["mac", "windows", "ubuntu", "browser"]
1818
"""The type of computer environment to control."""
1919

20-
type: Literal["computer-preview"]
20+
type: Literal["computer_use_preview"]
2121
"""The type of the computer use tool. Always `computer_use_preview`."""

src/openai/types/responses/computer_tool_param.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ class ComputerToolParam(TypedDict, total=False):
1717
environment: Required[Literal["mac", "windows", "ubuntu", "browser"]]
1818
"""The type of computer environment to control."""
1919

20-
type: Required[Literal["computer-preview"]]
20+
type: Required[Literal["computer_use_preview"]]
2121
"""The type of the computer use tool. Always `computer_use_preview`."""

0 commit comments

Comments
 (0)