Skip to content

Commit bd70a33

Browse files
feat(api): remove InputAudio from ResponseInputContent
Removes the type `InputAudio` from `ResponseInputContent`. This parameter was non-functional and has now been removed. Please note that this is not a feature removal; it was never supported by the Responses API. While this is technically a backward-incompatible change due to the type removal, it reflects the intended behavior and has no functional impact.
1 parent 4e88565 commit bd70a33

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 136
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a3c45d9bd3bb25bf4eaa49b7fb473a00038293dec659ffaa44f624ded884abf4.yml
3-
openapi_spec_hash: 9c20aaf786a0700dabd13d9865481c9e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f68f718cd45ac3f9336603601bccc38a718af44d0b26601031de3d0a71b7ce2f.yml
3+
openapi_spec_hash: 1560717860bba4105936647dde8f618d
44
config_hash: 50ee3382a63c021a9f821a935950e926

src/openai/types/responses/response_input_content.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
from ..._utils import PropertyInfo
77
from .response_input_file import ResponseInputFile
88
from .response_input_text import ResponseInputText
9-
from .response_input_audio import ResponseInputAudio
109
from .response_input_image import ResponseInputImage
1110

1211
__all__ = ["ResponseInputContent"]
1312

1413
ResponseInputContent: TypeAlias = Annotated[
15-
Union[ResponseInputText, ResponseInputImage, ResponseInputFile, ResponseInputAudio],
16-
PropertyInfo(discriminator="type"),
14+
Union[ResponseInputText, ResponseInputImage, ResponseInputFile], PropertyInfo(discriminator="type")
1715
]

src/openai/types/responses/response_input_content_param.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77

88
from .response_input_file_param import ResponseInputFileParam
99
from .response_input_text_param import ResponseInputTextParam
10-
from .response_input_audio_param import ResponseInputAudioParam
1110
from .response_input_image_param import ResponseInputImageParam
1211

1312
__all__ = ["ResponseInputContentParam"]
1413

15-
ResponseInputContentParam: TypeAlias = Union[
16-
ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam, ResponseInputAudioParam
17-
]
14+
ResponseInputContentParam: TypeAlias = Union[ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam]

src/openai/types/responses/response_input_message_content_list_param.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77

88
from .response_input_file_param import ResponseInputFileParam
99
from .response_input_text_param import ResponseInputTextParam
10-
from .response_input_audio_param import ResponseInputAudioParam
1110
from .response_input_image_param import ResponseInputImageParam
1211

1312
__all__ = ["ResponseInputMessageContentListParam", "ResponseInputContentParam"]
1413

15-
ResponseInputContentParam: TypeAlias = Union[
16-
ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam, ResponseInputAudioParam
17-
]
14+
ResponseInputContentParam: TypeAlias = Union[ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam]
1815

1916
ResponseInputMessageContentListParam: TypeAlias = List[ResponseInputContentParam]

0 commit comments

Comments
 (0)