diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d1328ca9c9..0a163d740c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.7.0" + ".": "2.7.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d59fe71ee4..2588839c5a 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-3c5d1593d7c6f2b38a7d78d7906041465ee9d6e9022f0651e1da194654488108.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-eeba8addf3a5f412e5ce8d22031e60c61650cee3f5d9e587a2533f6818a249ea.yml openapi_spec_hash: 0a4d8ad2469823ce24a3fd94f23f1c2b -config_hash: 032995825500a503a76da119f5354905 +config_hash: 0bb1941a78ece0b610a2fbba7d74a84c diff --git a/CHANGELOG.md b/CHANGELOG.md index 516368cfed..d0b673d0f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.7.1 (2025-11-04) + +Full Changelog: [v2.7.0...v2.7.1](https://github.com/openai/openai-python/compare/v2.7.0...v2.7.1) + +### Bug Fixes + +* **api:** fix nullability of logprobs ([373b7f6](https://github.com/openai/openai-python/commit/373b7f6e4255dfef3ccd92520011e8ba44e8b7f0)) + ## 2.7.0 (2025-11-03) Full Changelog: [v2.6.1...v2.7.0](https://github.com/openai/openai-python/compare/v2.6.1...v2.7.0) diff --git a/pyproject.toml b/pyproject.toml index 8ff272e18e..a4850a0f49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "2.7.0" +version = "2.7.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 0963c9c373..9fb4c23dba 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.7.0" # x-release-please-version +__version__ = "2.7.1" # x-release-please-version diff --git a/src/openai/types/responses/response_output_text.py b/src/openai/types/responses/response_output_text.py index fc579cd894..aa97b629f0 100644 --- a/src/openai/types/responses/response_output_text.py +++ b/src/openai/types/responses/response_output_text.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union +from typing import List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo @@ -108,10 +108,10 @@ class ResponseOutputText(BaseModel): annotations: List[Annotation] """The annotations of the text output.""" - logprobs: List[Logprob] - text: str """The text output from the model.""" type: Literal["output_text"] """The type of the output text. Always `output_text`.""" + + logprobs: Optional[List[Logprob]] = None diff --git a/src/openai/types/responses/response_output_text_param.py b/src/openai/types/responses/response_output_text_param.py index 445a308a5b..63d2d394a8 100644 --- a/src/openai/types/responses/response_output_text_param.py +++ b/src/openai/types/responses/response_output_text_param.py @@ -106,10 +106,10 @@ class ResponseOutputTextParam(TypedDict, total=False): annotations: Required[Iterable[Annotation]] """The annotations of the text output.""" - logprobs: Required[Iterable[Logprob]] - text: Required[str] """The text output from the model.""" type: Required[Literal["output_text"]] """The type of the output text. Always `output_text`.""" + + logprobs: Iterable[Logprob]