diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fc2c3ec04d..a4c14007b3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.82.0" + ".": "1.82.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 017aa58a1c..d761f22d73 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 111 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fc64d7c2c8f51f750813375356c3f3fdfc7fc1b1b34f19c20a5410279d445d37.yml openapi_spec_hash: 618285fc70199ee32b9ebe4bf72f7e4c -config_hash: c497f6b750cc89c0bf2eefc0bc839c70 +config_hash: 535b6e5f26a295d609b259c8cb8f656c diff --git a/CHANGELOG.md b/CHANGELOG.md index a354b8735a..31b7792a53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.82.1 (2025-05-29) + +Full Changelog: [v1.82.0...v1.82.1](https://github.com/openai/openai-python/compare/v1.82.0...v1.82.1) + +### Bug Fixes + +* **responses:** don't include `parsed_arguments` when re-serialising ([6d04193](https://github.com/openai/openai-python/commit/6d041937963ce452affcfb3553146ee51acfeb7a)) + + +### Chores + +* **internal:** fix release workflows ([361a909](https://github.com/openai/openai-python/commit/361a909a0cc83e5029ea425fd72202ffa8d1a46a)) + ## 1.82.0 (2025-05-22) Full Changelog: [v1.81.0...v1.82.0](https://github.com/openai/openai-python/compare/v1.81.0...v1.82.0) diff --git a/bin/check-release-environment b/bin/check-release-environment index 5471b69edb..2cc5ad6352 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,6 +2,10 @@ errors=() +if [ -z "${STAINLESS_API_KEY}" ]; then + errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.") +fi + if [ -z "${PYPI_TOKEN}" ]; then errors+=("The OPENAI_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") fi diff --git a/pyproject.toml b/pyproject.toml index b8580d854a..190e9bbbfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.82.0" +version = "1.82.1" description = "The official Python library for the openai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openai/_utils/_transform.py b/src/openai/_utils/_transform.py index b0cc20a735..60f9dfcbcb 100644 --- a/src/openai/_utils/_transform.py +++ b/src/openai/_utils/_transform.py @@ -212,7 +212,7 @@ def _transform_recursive( return data if isinstance(data, pydantic.BaseModel): - return model_dump(data, exclude_unset=True, mode="json") + return model_dump(data, exclude_unset=True, mode="json", exclude=getattr(data, '__api_exclude__', None)) annotated_type = _get_annotated_type(annotation) if annotated_type is None: diff --git a/src/openai/_version.py b/src/openai/_version.py index 8fc27e8457..9bf34c1f6b 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__ = "1.82.0" # x-release-please-version +__version__ = "1.82.1" # x-release-please-version diff --git a/src/openai/types/responses/parsed_response.py b/src/openai/types/responses/parsed_response.py index 923e9debba..f0b85f7209 100644 --- a/src/openai/types/responses/parsed_response.py +++ b/src/openai/types/responses/parsed_response.py @@ -55,6 +55,8 @@ class ParsedResponseOutputMessage(ResponseOutputMessage, GenericModel, Generic[C class ParsedResponseFunctionToolCall(ResponseFunctionToolCall): parsed_arguments: object = None + __api_exclude__ = {'parsed_arguments'} + ParsedResponseOutputItem: TypeAlias = Annotated[ Union[