@@ -185,16 +185,13 @@ export class Responses extends APIResource {
185185 *
186186 * @example
187187 * ```ts
188- * await client.responses.cancel(
188+ * const response = await client.responses.cancel(
189189 * 'resp_677efb5139a88190b512bc3fef8e535d',
190190 * );
191191 * ```
192192 */
193- cancel ( responseID : string , options ?: RequestOptions ) : APIPromise < void > {
194- return this . _client . post ( path `/responses/${ responseID } /cancel` , {
195- ...options ,
196- headers : buildHeaders ( [ { Accept : '*/*' } , options ?. headers ] ) ,
197- } ) ;
193+ cancel ( responseID : string , options ?: RequestOptions ) : APIPromise < Response > {
194+ return this . _client . post ( path `/responses/${ responseID } /cancel` , options ) ;
198195 }
199196}
200197
@@ -488,9 +485,9 @@ export interface Response {
488485 * utilize scale tier credits until they are exhausted.
489486 * - If set to 'auto', and the Project is not Scale tier enabled, the request will
490487 * be processed using the default service tier with a lower uptime SLA and no
491- * latency guarentee .
488+ * latency guarantee .
492489 * - If set to 'default', the request will be processed using the default service
493- * tier with a lower uptime SLA and no latency guarentee .
490+ * tier with a lower uptime SLA and no latency guarantee .
494491 * - If set to 'flex', the request will be processed with the Flex Processing
495492 * service tier.
496493 * [Learn more](https://platform.openai.com/docs/guides/flex-processing).
@@ -643,9 +640,9 @@ export interface ResponseCodeInterpreterCallCodeDeltaEvent {
643640 sequence_number : number ;
644641
645642 /**
646- * The type of the event. Always `response.code_interpreter_call.code .delta`.
643+ * The type of the event. Always `response.code_interpreter_call_code .delta`.
647644 */
648- type : 'response.code_interpreter_call.code .delta' ;
645+ type : 'response.code_interpreter_call_code .delta' ;
649646}
650647
651648/**
@@ -668,9 +665,9 @@ export interface ResponseCodeInterpreterCallCodeDoneEvent {
668665 sequence_number : number ;
669666
670667 /**
671- * The type of the event. Always `response.code_interpreter_call.code .done`.
668+ * The type of the event. Always `response.code_interpreter_call_code .done`.
672669 */
673- type : 'response.code_interpreter_call.code .done' ;
670+ type : 'response.code_interpreter_call_code .done' ;
674671}
675672
676673/**
@@ -1875,12 +1872,15 @@ export interface ResponseInProgressEvent {
18751872 * multi-turn conversations when using the Responses API statelessly (like when
18761873 * the `store` parameter is set to `false`, or when an organization is enrolled
18771874 * in the zero data retention program).
1875+ * - `code_interpreter_call.outputs`: Includes the outputs of python code execution
1876+ * in code interpreter tool call items.
18781877 */
18791878export type ResponseIncludable =
18801879 | 'file_search_call.results'
18811880 | 'message.input_image.image_url'
18821881 | 'computer_call_output.output.image_url'
1883- | 'reasoning.encrypted_content' ;
1882+ | 'reasoning.encrypted_content'
1883+ | 'code_interpreter_call.outputs' ;
18841884
18851885/**
18861886 * An event that is emitted when a response finishes as incomplete.
@@ -3296,7 +3296,10 @@ export interface ResponseOutputText {
32963296 * The annotations of the text output.
32973297 */
32983298 annotations : Array <
3299- ResponseOutputText . FileCitation | ResponseOutputText . URLCitation | ResponseOutputText . FilePath
3299+ | ResponseOutputText . FileCitation
3300+ | ResponseOutputText . URLCitation
3301+ | ResponseOutputText . ContainerFileCitation
3302+ | ResponseOutputText . FilePath
33003303 > ;
33013304
33023305 /**
@@ -3363,6 +3366,36 @@ export namespace ResponseOutputText {
33633366 url : string ;
33643367 }
33653368
3369+ /**
3370+ * A citation for a container file used to generate a model response.
3371+ */
3372+ export interface ContainerFileCitation {
3373+ /**
3374+ * The ID of the container file.
3375+ */
3376+ container_id : string ;
3377+
3378+ /**
3379+ * The index of the last character of the container file citation in the message.
3380+ */
3381+ end_index : number ;
3382+
3383+ /**
3384+ * The ID of the file.
3385+ */
3386+ file_id : string ;
3387+
3388+ /**
3389+ * The index of the first character of the container file citation in the message.
3390+ */
3391+ start_index : number ;
3392+
3393+ /**
3394+ * The type of the container file citation. Always `container_file_citation`.
3395+ */
3396+ type : 'container_file_citation' ;
3397+ }
3398+
33663399 /**
33673400 * A path to a file.
33683401 */
@@ -4573,6 +4606,8 @@ export interface ResponseCreateParamsBase {
45734606 * multi-turn conversations when using the Responses API statelessly (like when
45744607 * the `store` parameter is set to `false`, or when an organization is enrolled
45754608 * in the zero data retention program).
4609+ * - `code_interpreter_call.outputs`: Includes the outputs of python code execution
4610+ * in code interpreter tool call items.
45764611 */
45774612 include ?: Array < ResponseIncludable > | null ;
45784613
@@ -4631,9 +4666,9 @@ export interface ResponseCreateParamsBase {
46314666 * utilize scale tier credits until they are exhausted.
46324667 * - If set to 'auto', and the Project is not Scale tier enabled, the request will
46334668 * be processed using the default service tier with a lower uptime SLA and no
4634- * latency guarentee .
4669+ * latency guarantee .
46354670 * - If set to 'default', the request will be processed using the default service
4636- * tier with a lower uptime SLA and no latency guarentee .
4671+ * tier with a lower uptime SLA and no latency guarantee .
46374672 * - If set to 'flex', the request will be processed with the Flex Processing
46384673 * service tier.
46394674 * [Learn more](https://platform.openai.com/docs/guides/flex-processing).
0 commit comments