diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9472ef89a3..62255b70d8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.99.2" + ".": "1.99.3" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 9c1b4e4c54..4d8b1f059e 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-f5c45f4ae5c2075cbc603d6910bba3da31c23714c209fbd3fd82a94f634a126b.yml openapi_spec_hash: 3eb8d86c06f0bb5e1190983e5acfc9ba -config_hash: 9a64321968e21ed72f5c0e02164ea00d +config_hash: e53ea2d984c4e05a57eb0227fa379b2b diff --git a/CHANGELOG.md b/CHANGELOG.md index a6ac2ffb3f..6d06c6548e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.99.3 (2025-08-07) + +Full Changelog: [v1.99.2...v1.99.3](https://github.com/openai/openai-python/compare/v1.99.2...v1.99.3) + +### Bug Fixes + +* **responses:** add output_text back ([585a4f1](https://github.com/openai/openai-python/commit/585a4f15e5a088bf8afee745bc4a7803775ac283)) + ## 1.99.2 (2025-08-07) Full Changelog: [v1.99.1...v1.99.2](https://github.com/openai/openai-python/compare/v1.99.1...v1.99.2) diff --git a/pyproject.toml b/pyproject.toml index 7ea0a63597..b2fc253ae6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.99.2" +version = "1.99.3" 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 088935379f..982cd9724f 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.99.2" # x-release-please-version +__version__ = "1.99.3" # x-release-please-version diff --git a/src/openai/types/responses/response.py b/src/openai/types/responses/response.py index 07a82cb4ac..5ebb18fda4 100644 --- a/src/openai/types/responses/response.py +++ b/src/openai/types/responses/response.py @@ -259,3 +259,17 @@ class Response(BaseModel): [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). """ + @property + def output_text(self) -> str: + """Convenience property that aggregates all `output_text` items from the `output` list. + + If no `output_text` content blocks exist, then an empty string is returned. + """ + texts: List[str] = [] + for output in self.output: + if output.type == "message": + for content in output.content: + if content.type == "output_text": + texts.append(content.text) + + return "".join(texts)