Commit b16bf4eb

stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
2025-10-28 08:54:12
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
src/openai/types/responses/response_input_content.py
@@ -6,12 +6,10 @@ from typing_extensions import Annotated, TypeAlias
 from ..._utils import PropertyInfo
 from .response_input_file import ResponseInputFile
 from .response_input_text import ResponseInputText
-from .response_input_audio import ResponseInputAudio
 from .response_input_image import ResponseInputImage
 
 __all__ = ["ResponseInputContent"]
 
 ResponseInputContent: TypeAlias = Annotated[
-    Union[ResponseInputText, ResponseInputImage, ResponseInputFile, ResponseInputAudio],
-    PropertyInfo(discriminator="type"),
+    Union[ResponseInputText, ResponseInputImage, ResponseInputFile], PropertyInfo(discriminator="type")
 ]
src/openai/types/responses/response_input_content_param.py
@@ -7,11 +7,8 @@ from typing_extensions import TypeAlias
 
 from .response_input_file_param import ResponseInputFileParam
 from .response_input_text_param import ResponseInputTextParam
-from .response_input_audio_param import ResponseInputAudioParam
 from .response_input_image_param import ResponseInputImageParam
 
 __all__ = ["ResponseInputContentParam"]
 
-ResponseInputContentParam: TypeAlias = Union[
-    ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam, ResponseInputAudioParam
-]
+ResponseInputContentParam: TypeAlias = Union[ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam]
src/openai/types/responses/response_input_message_content_list_param.py
@@ -7,13 +7,10 @@ from typing_extensions import TypeAlias
 
 from .response_input_file_param import ResponseInputFileParam
 from .response_input_text_param import ResponseInputTextParam
-from .response_input_audio_param import ResponseInputAudioParam
 from .response_input_image_param import ResponseInputImageParam
 
 __all__ = ["ResponseInputMessageContentListParam", "ResponseInputContentParam"]
 
-ResponseInputContentParam: TypeAlias = Union[
-    ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam, ResponseInputAudioParam
-]
+ResponseInputContentParam: TypeAlias = Union[ResponseInputTextParam, ResponseInputImageParam, ResponseInputFileParam]
 
 ResponseInputMessageContentListParam: TypeAlias = List[ResponseInputContentParam]
.stats.yml
@@ -1,4 +1,4 @@
 configured_endpoints: 136
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a3c45d9bd3bb25bf4eaa49b7fb473a00038293dec659ffaa44f624ded884abf4.yml
-openapi_spec_hash: 9c20aaf786a0700dabd13d9865481c9e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f68f718cd45ac3f9336603601bccc38a718af44d0b26601031de3d0a71b7ce2f.yml
+openapi_spec_hash: 1560717860bba4105936647dde8f618d
 config_hash: 50ee3382a63c021a9f821a935950e926