diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b85605b81..e1cfad1cb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.5.0" + ".": "6.5.1" } diff --git a/.stats.yml b/.stats.yml index 3a558a911..6b1557c31 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 134 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f59befea071ed7729cbb7bce219e7f837eccfdb57e01698514e6a0bd6052ff60.yml -openapi_spec_hash: 49da48619d37932b2e257c532078b2bb -config_hash: 1af83449a09a3b4f276444dbcdd3eb67 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b062c33330de7e3bbf992fd4f0799afd868c30a66c39418dd2c62f4add3b45b6.yml +openapi_spec_hash: fe067f5b1c0e93799b5ea7fde3c4b1b3 +config_hash: 4b6f471b24d659514b86b736c90a0c0a diff --git a/CHANGELOG.md b/CHANGELOG.md index 963aaa2c0..fbf78aa5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 6.5.1 (2025-10-19) + +Full Changelog: [v6.5.0...v6.5.1](https://github.com/openai/openai-node/compare/v6.5.0...v6.5.1) + +### Bug Fixes + +* **api:** internal openapi updates ([d4aaef9](https://github.com/openai/openai-node/commit/d4aaef9c2e3d9f00b33d59e569149a937e5bd3f5)) + ## 6.5.0 (2025-10-17) Full Changelog: [v6.4.0...v6.5.0](https://github.com/openai/openai-node/compare/v6.4.0...v6.5.0) diff --git a/jsr.json b/jsr.json index 330d3d80c..c15e1170d 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@openai/openai", - "version": "6.5.0", + "version": "6.5.1", "exports": { ".": "./index.ts", "./helpers/zod": "./helpers/zod.ts", diff --git a/package.json b/package.json index e9ef2556a..ef36ebe65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "6.5.0", + "version": "6.5.1", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/resources/images.ts b/src/resources/images.ts index fce5a1b66..a47690aae 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -545,10 +545,7 @@ export interface ImageEditParamsBase { background?: 'transparent' | 'opaque' | 'auto' | null; /** - * Control how much effort the model will exert to match the style and features, - * especially facial features, of input images. This parameter is only supported - * for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and - * `low`. Defaults to `low`. + * Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`. */ input_fidelity?: 'high' | 'low' | null; diff --git a/src/resources/responses/responses.ts b/src/resources/responses/responses.ts index da365ead7..72dad1355 100644 --- a/src/resources/responses/responses.ts +++ b/src/resources/responses/responses.ts @@ -229,10 +229,6 @@ export interface ComputerTool { type: 'computer_use_preview'; } -/** - * A custom tool that processes input using a specified format. Learn more about - * [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools). - */ export interface CustomTool { /** * The name of the custom tool, used to identify it in tool calls. @@ -890,7 +886,7 @@ export namespace ResponseCodeInterpreterToolCall { logs: string; /** - * The type of the output. Always 'logs'. + * The type of the output. Always `logs`. */ type: 'logs'; } @@ -900,7 +896,7 @@ export namespace ResponseCodeInterpreterToolCall { */ export interface Image { /** - * The type of the output. Always 'image'. + * The type of the output. Always `image`. */ type: 'image'; @@ -990,8 +986,7 @@ export namespace ResponseComputerToolCall { button: 'left' | 'right' | 'wheel' | 'back' | 'forward'; /** - * Specifies the event type. For a click action, this property is always set to - * `click`. + * Specifies the event type. For a click action, this property is always `click`. */ type: 'click'; @@ -1053,7 +1048,7 @@ export namespace ResponseComputerToolCall { export namespace Drag { /** - * A series of x/y coordinate pairs in the drag path. + * An x/y coordinate pair, e.g. `{ x: 100, y: 200 }`. */ export interface Path { /** @@ -1187,12 +1182,12 @@ export namespace ResponseComputerToolCall { /** * The type of the pending safety check. */ - code: string; + code?: string | null; /** * Details about the pending safety check. */ - message: string; + message?: string | null; } } @@ -1243,12 +1238,12 @@ export namespace ResponseComputerToolCallOutputItem { /** * The type of the pending safety check. */ - code: string; + code?: string | null; /** * Details about the pending safety check. */ - message: string; + message?: string | null; } } @@ -2240,10 +2235,13 @@ export interface ResponseInProgressEvent { */ export type ResponseIncludable = | 'file_search_call.results' + | 'web_search_call.results' + | 'web_search_call.action.sources' | 'message.input_image.image_url' | 'computer_call_output.output.image_url' + | 'code_interpreter_call.outputs' | 'reasoning.encrypted_content' - | 'code_interpreter_call.outputs'; + | 'message.output_text.logprobs'; /** * An event that is emitted when a response finishes as incomplete. @@ -5066,10 +5064,7 @@ export namespace Tool { background?: 'transparent' | 'opaque' | 'auto'; /** - * Control how much effort the model will exert to match the style and features, - * especially facial features, of input images. This parameter is only supported - * for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and - * `low`. Defaults to `low`. + * Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`. */ input_fidelity?: 'high' | 'low' | null; @@ -5137,9 +5132,6 @@ export namespace Tool { } } - /** - * A tool that allows the model to execute shell commands in a local environment. - */ export interface LocalShell { /** * The type of the local shell tool. Always `local_shell`. diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 59bc655db..e4f682ace 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -135,9 +135,6 @@ export interface CompoundFilter { export type CustomToolInputFormat = CustomToolInputFormat.Text | CustomToolInputFormat.Grammar; export namespace CustomToolInputFormat { - /** - * Unconstrained free-form text. - */ export interface Text { /** * Unconstrained text format. Always `text`. @@ -145,9 +142,6 @@ export namespace CustomToolInputFormat { type: 'text'; } - /** - * A grammar defined by the user. - */ export interface Grammar { /** * The grammar definition. diff --git a/src/version.ts b/src/version.ts index d69c3fa30..24c999f10 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '6.5.0'; // x-release-please-version +export const VERSION = '6.5.1'; // x-release-please-version diff --git a/tests/api-resources/conversations/items.test.ts b/tests/api-resources/conversations/items.test.ts index c0db0f7b8..1c1ca83d0 100644 --- a/tests/api-resources/conversations/items.test.ts +++ b/tests/api-resources/conversations/items.test.ts @@ -24,7 +24,7 @@ describe('resource items', () => { test('create: required and optional params', async () => { const response = await client.conversations.items.create('conv_123', { items: [{ content: 'string', role: 'user', type: 'message' }], - include: ['code_interpreter_call.outputs'], + include: ['file_search_call.results'], }); }); @@ -42,7 +42,7 @@ describe('resource items', () => { test('retrieve: required and optional params', async () => { const response = await client.conversations.items.retrieve('msg_abc', { conversation_id: 'conv_123', - include: ['code_interpreter_call.outputs'], + include: ['file_search_call.results'], }); }); @@ -62,7 +62,7 @@ describe('resource items', () => { await expect( client.conversations.items.list( 'conv_123', - { after: 'after', include: ['code_interpreter_call.outputs'], limit: 0, order: 'asc' }, + { after: 'after', include: ['file_search_call.results'], limit: 0, order: 'asc' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(OpenAI.NotFoundError); diff --git a/tests/api-resources/responses/input-items.test.ts b/tests/api-resources/responses/input-items.test.ts index 3a2965633..f04422e14 100644 --- a/tests/api-resources/responses/input-items.test.ts +++ b/tests/api-resources/responses/input-items.test.ts @@ -24,7 +24,7 @@ describe('resource inputItems', () => { await expect( client.responses.inputItems.list( 'response_id', - { after: 'after', include: ['code_interpreter_call.outputs'], limit: 0, order: 'asc' }, + { after: 'after', include: ['file_search_call.results'], limit: 0, order: 'asc' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(OpenAI.NotFoundError); diff --git a/tests/api-resources/responses/responses.test.ts b/tests/api-resources/responses/responses.test.ts index 3f51d72a2..830bf5ade 100644 --- a/tests/api-resources/responses/responses.test.ts +++ b/tests/api-resources/responses/responses.test.ts @@ -42,7 +42,7 @@ describe('resource responses', () => { client.responses.retrieve( 'resp_677efb5139a88190b512bc3fef8e535d', { - include: ['code_interpreter_call.outputs'], + include: ['file_search_call.results'], include_obfuscation: true, starting_after: 0, stream: false,