Commit 5f548eaa

stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
2025-03-12 03:52:46
fix(responses): correct computer use enum value (#2180)
1 parent 849ec26
Changed files (3)
src/openai/types/responses/computer_tool.py
@@ -17,5 +17,5 @@ class ComputerTool(BaseModel):
     environment: Literal["mac", "windows", "ubuntu", "browser"]
     """The type of computer environment to control."""
 
-    type: Literal["computer-preview"]
+    type: Literal["computer_use_preview"]
     """The type of the computer use tool. Always `computer_use_preview`."""
src/openai/types/responses/computer_tool_param.py
@@ -17,5 +17,5 @@ class ComputerToolParam(TypedDict, total=False):
     environment: Required[Literal["mac", "windows", "ubuntu", "browser"]]
     """The type of computer environment to control."""
 
-    type: Required[Literal["computer-preview"]]
+    type: Required[Literal["computer_use_preview"]]
     """The type of the computer use tool. Always `computer_use_preview`."""
.stats.yml
@@ -1,2 +1,2 @@
 configured_endpoints: 81
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-be834d63e326a82494e819085137f5eb15866f3fc787db1f3afe7168d419e18a.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-9ce5257763fb30c6e0e1ee2bef7e13baf661511e09572207e528d643da8e16b3.yml