Skip to content

Commit 9909fef

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 1b6c789 commit 9909fef

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
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: 135
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/resources/responses/responses.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ export interface ComputerTool {
232232
type: 'computer_use_preview';
233233
}
234234

235+
/**
236+
* A custom tool that processes input using a specified format. Learn more about
237+
* [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools)
238+
*/
235239
export interface CustomTool {
236240
/**
237241
* The name of the custom tool, used to identify it in tool calls.
@@ -1278,7 +1282,6 @@ export type ResponseContent =
12781282
| ResponseInputText
12791283
| ResponseInputImage
12801284
| ResponseInputFile
1281-
| ResponseInputAudio
12821285
| ResponseOutputText
12831286
| ResponseOutputRefusal
12841287
| ResponseContent.ReasoningTextContent;
@@ -2301,11 +2304,7 @@ export namespace ResponseInputAudio {
23012304
/**
23022305
* A text input to the model.
23032306
*/
2304-
export type ResponseInputContent =
2305-
| ResponseInputText
2306-
| ResponseInputImage
2307-
| ResponseInputFile
2308-
| ResponseInputAudio;
2307+
export type ResponseInputContent = ResponseInputText | ResponseInputImage | ResponseInputFile;
23092308

23102309
/**
23112310
* A file input to the model.
@@ -5135,6 +5134,9 @@ export namespace Tool {
51355134
}
51365135
}
51375136

5137+
/**
5138+
* A tool that allows the model to execute shell commands in a local environment.
5139+
*/
51385140
export interface LocalShell {
51395141
/**
51405142
* The type of the local shell tool. Always `local_shell`.

0 commit comments

Comments
 (0)