Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "6.5.0"
".": "6.5.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
"version": "6.5.0",
"version": "6.5.1",
"exports": {
".": "./index.ts",
"./helpers/zod": "./helpers/zod.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
5 changes: 1 addition & 4 deletions src/resources/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
34 changes: 13 additions & 21 deletions src/resources/responses/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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';
}
Expand All @@ -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';

Expand Down Expand Up @@ -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';

Expand Down Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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`.
Expand Down
6 changes: 0 additions & 6 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,13 @@ 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`.
*/
type: 'text';
}

/**
* A grammar defined by the user.
*/
export interface Grammar {
/**
* The grammar definition.
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '6.5.0'; // x-release-please-version
export const VERSION = '6.5.1'; // x-release-please-version
6 changes: 3 additions & 3 deletions tests/api-resources/conversations/items.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});
});

Expand All @@ -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'],
});
});

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/responses/input-items.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/responses/responses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down