diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 64f9ff4148..108509ed29 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.8.0" + ".": "2.8.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index b44bda286e..fe1a09be6b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 136 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ca24bc4d8125b5153514ce643c4e3220f25971b7d67ca384d56d493c72c0d977.yml -openapi_spec_hash: c6f048c7b3d29f4de48fde0e845ba33f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a7e92d12ebe89ca019a7ac5b29759064eefa2c38fe08d03516f2620e66abb32b.yml +openapi_spec_hash: acbc703b2739447abc6312b2d753631c config_hash: b876221dfb213df9f0a999e75d38a65e diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d49a82e5c..1bfa59348f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.8.1 (2025-11-17) + +Full Changelog: [v2.8.0...v2.8.1](https://github.com/openai/openai-python/compare/v2.8.0...v2.8.1) + +### Bug Fixes + +* **api:** align types of input items / output items for typescript ([64c9fb3](https://github.com/openai/openai-python/commit/64c9fb3fcc79f0049b3a36bd429faf0600d969f6)) + ## 2.8.0 (2025-11-13) Full Changelog: [v2.7.2...v2.8.0](https://github.com/openai/openai-python/compare/v2.7.2...v2.8.0) diff --git a/pyproject.toml b/pyproject.toml index 0c4d4b62a7..75118d46be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "2.8.0" +version = "2.8.1" description = "The official Python library for the openai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openai/_version.py b/src/openai/_version.py index 63e309efdd..6109cebf91 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openai" -__version__ = "2.8.0" # x-release-please-version +__version__ = "2.8.1" # x-release-please-version diff --git a/src/openai/types/responses/response_apply_patch_tool_call.py b/src/openai/types/responses/response_apply_patch_tool_call.py index 78eb8c8339..7dc2a3c2b5 100644 --- a/src/openai/types/responses/response_apply_patch_tool_call.py +++ b/src/openai/types/responses/response_apply_patch_tool_call.py @@ -60,6 +60,12 @@ class ResponseApplyPatchToolCall(BaseModel): call_id: str """The unique ID of the apply patch tool call generated by the model.""" + operation: Operation + """ + One of the create_file, delete_file, or update_file operations applied via + apply_patch. + """ + status: Literal["in_progress", "completed"] """The status of the apply patch tool call. One of `in_progress` or `completed`.""" @@ -68,9 +74,3 @@ class ResponseApplyPatchToolCall(BaseModel): created_by: Optional[str] = None """The ID of the entity that created this tool call.""" - - operation: Optional[Operation] = None - """ - One of the create_file, delete_file, or update_file operations applied via - apply_patch. - """ diff --git a/src/openai/types/responses/response_apply_patch_tool_call_output.py b/src/openai/types/responses/response_apply_patch_tool_call_output.py index 7aee5fae9c..cf0bcfeecc 100644 --- a/src/openai/types/responses/response_apply_patch_tool_call_output.py +++ b/src/openai/types/responses/response_apply_patch_tool_call_output.py @@ -18,9 +18,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel): call_id: str """The unique ID of the apply patch tool call generated by the model.""" - output: Optional[str] = None - """Optional textual output returned by the apply patch tool.""" - status: Literal["completed", "failed"] """The status of the apply patch tool call output. One of `completed` or `failed`.""" @@ -29,3 +26,6 @@ class ResponseApplyPatchToolCallOutput(BaseModel): created_by: Optional[str] = None """The ID of the entity that created this tool call output.""" + + output: Optional[str] = None + """Optional textual output returned by the apply patch tool.""" diff --git a/src/openai/types/responses/response_input_item_param.py b/src/openai/types/responses/response_input_item_param.py index 231063cb5e..5c2e81c4de 100644 --- a/src/openai/types/responses/response_input_item_param.py +++ b/src/openai/types/responses/response_input_item_param.py @@ -334,7 +334,7 @@ class ApplyPatchCallOutput(TypedDict, total=False): Populated when this item is returned via API. """ - output: str + output: Optional[str] """ Optional human-readable log text from the apply patch tool (e.g., patch results or errors). diff --git a/src/openai/types/responses/response_input_param.py b/src/openai/types/responses/response_input_param.py index 15d9480eaf..365c6b3d7b 100644 --- a/src/openai/types/responses/response_input_param.py +++ b/src/openai/types/responses/response_input_param.py @@ -335,7 +335,7 @@ class ApplyPatchCallOutput(TypedDict, total=False): Populated when this item is returned via API. """ - output: str + output: Optional[str] """ Optional human-readable log text from the apply patch tool (e.g., patch results or errors).