Skip to content

Commit 864d01a

Browse files
Merge pull request #1603 from openai/release-please--branches--master--changes--next--components--openai
release: 5.12.0
2 parents 3c33025 + 3c6d7e8 commit 864d01a

File tree

10 files changed

+114
-87
lines changed

10 files changed

+114
-87
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.11.0"
2+
".": "5.12.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-721e6ccaa72205ee14c71f8163129920464fb814b95d3df9567a9476bbd9b7fb.yml
3-
openapi_spec_hash: 2115413a21df8b5bf9e4552a74df4312
4-
config_hash: 9606bb315a193bfd8da0459040143242
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d6a16b25b969c3e5382e7d413de15bf83d5f7534d5c3ecce64d3a7e847418f9e.yml
3+
openapi_spec_hash: 0c0bcf4aee9ca2a948dd14b890dfe728
4+
config_hash: aeff9289bd7f8c8482e4d738c3c2fde1

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 5.12.0 (2025-08-05)
4+
5+
Full Changelog: [v5.11.0...v5.12.0](https://github.com/openai/openai-node/compare/v5.11.0...v5.12.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([f0d3056](https://github.com/openai/openai-node/commit/f0d3056932adb8e448fd1141eae4b07ad0c66ddb))
10+
311
## 5.11.0 (2025-07-30)
412

513
Full Changelog: [v5.10.3...v5.11.0](https://github.com/openai/openai-node/compare/v5.10.3...v5.11.0)

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,12 +711,12 @@ Types:
711711
- <code><a href="./src/resources/responses/responses.ts">ResponsePrompt</a></code>
712712
- <code><a href="./src/resources/responses/responses.ts">ResponseQueuedEvent</a></code>
713713
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningItem</a></code>
714-
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryDeltaEvent</a></code>
715-
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryDoneEvent</a></code>
716714
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryPartAddedEvent</a></code>
717715
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryPartDoneEvent</a></code>
718716
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryTextDeltaEvent</a></code>
719717
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningSummaryTextDoneEvent</a></code>
718+
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningTextDeltaEvent</a></code>
719+
- <code><a href="./src/resources/responses/responses.ts">ResponseReasoningTextDoneEvent</a></code>
720720
- <code><a href="./src/resources/responses/responses.ts">ResponseRefusalDeltaEvent</a></code>
721721
- <code><a href="./src/resources/responses/responses.ts">ResponseRefusalDoneEvent</a></code>
722722
- <code><a href="./src/resources/responses/responses.ts">ResponseStatus</a></code>

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openai/openai",
3-
"version": "5.11.0",
3+
"version": "5.12.0",
44
"exports": {
55
".": "./index.ts",
66
"./helpers/zod": "./helpers/zod.ts",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "5.11.0",
3+
"version": "5.12.0",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",

src/resources/responses/responses.ts

Lines changed: 92 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -3690,7 +3690,7 @@ export interface ResponseReasoningItem {
36903690
id: string;
36913691

36923692
/**
3693-
* Reasoning text contents.
3693+
* Reasoning summary content.
36943694
*/
36953695
summary: Array<ResponseReasoningItem.Summary>;
36963696

@@ -3699,6 +3699,11 @@ export interface ResponseReasoningItem {
36993699
*/
37003700
type: 'reasoning';
37013701

3702+
/**
3703+
* Reasoning text content.
3704+
*/
3705+
content?: Array<ResponseReasoningItem.Content>;
3706+
37023707
/**
37033708
* The encrypted content of the reasoning item - populated when a response is
37043709
* generated with `reasoning.encrypted_content` in the `include` parameter.
@@ -3715,7 +3720,7 @@ export interface ResponseReasoningItem {
37153720
export namespace ResponseReasoningItem {
37163721
export interface Summary {
37173722
/**
3718-
* A short summary of the reasoning used by the model when generating the response.
3723+
* A summary of the reasoning output from the model so far.
37193724
*/
37203725
text: string;
37213726

@@ -3724,77 +3729,18 @@ export namespace ResponseReasoningItem {
37243729
*/
37253730
type: 'summary_text';
37263731
}
3727-
}
3728-
3729-
/**
3730-
* Emitted when there is a delta (partial update) to the reasoning summary content.
3731-
*/
3732-
export interface ResponseReasoningSummaryDeltaEvent {
3733-
/**
3734-
* The partial update to the reasoning summary content.
3735-
*/
3736-
delta: unknown;
3737-
3738-
/**
3739-
* The unique identifier of the item for which the reasoning summary is being
3740-
* updated.
3741-
*/
3742-
item_id: string;
3743-
3744-
/**
3745-
* The index of the output item in the response's output array.
3746-
*/
3747-
output_index: number;
3748-
3749-
/**
3750-
* The sequence number of this event.
3751-
*/
3752-
sequence_number: number;
3753-
3754-
/**
3755-
* The index of the summary part within the output item.
3756-
*/
3757-
summary_index: number;
3758-
3759-
/**
3760-
* The type of the event. Always 'response.reasoning_summary.delta'.
3761-
*/
3762-
type: 'response.reasoning_summary.delta';
3763-
}
3764-
3765-
/**
3766-
* Emitted when the reasoning summary content is finalized for an item.
3767-
*/
3768-
export interface ResponseReasoningSummaryDoneEvent {
3769-
/**
3770-
* The unique identifier of the item for which the reasoning summary is finalized.
3771-
*/
3772-
item_id: string;
37733732

3774-
/**
3775-
* The index of the output item in the response's output array.
3776-
*/
3777-
output_index: number;
3778-
3779-
/**
3780-
* The sequence number of this event.
3781-
*/
3782-
sequence_number: number;
3783-
3784-
/**
3785-
* The index of the summary part within the output item.
3786-
*/
3787-
summary_index: number;
3788-
3789-
/**
3790-
* The finalized reasoning summary text.
3791-
*/
3792-
text: string;
3733+
export interface Content {
3734+
/**
3735+
* Reasoning text output from the model.
3736+
*/
3737+
text: string;
37933738

3794-
/**
3795-
* The type of the event. Always 'response.reasoning_summary.done'.
3796-
*/
3797-
type: 'response.reasoning_summary.done';
3739+
/**
3740+
* The type of the object. Always `reasoning_text`.
3741+
*/
3742+
type: 'reasoning_text';
3743+
}
37983744
}
37993745

38003746
/**
@@ -3971,6 +3917,76 @@ export interface ResponseReasoningSummaryTextDoneEvent {
39713917
type: 'response.reasoning_summary_text.done';
39723918
}
39733919

3920+
/**
3921+
* Emitted when a delta is added to a reasoning text.
3922+
*/
3923+
export interface ResponseReasoningTextDeltaEvent {
3924+
/**
3925+
* The index of the reasoning content part this delta is associated with.
3926+
*/
3927+
content_index: number;
3928+
3929+
/**
3930+
* The text delta that was added to the reasoning content.
3931+
*/
3932+
delta: string;
3933+
3934+
/**
3935+
* The ID of the item this reasoning text delta is associated with.
3936+
*/
3937+
item_id: string;
3938+
3939+
/**
3940+
* The index of the output item this reasoning text delta is associated with.
3941+
*/
3942+
output_index: number;
3943+
3944+
/**
3945+
* The sequence number of this event.
3946+
*/
3947+
sequence_number: number;
3948+
3949+
/**
3950+
* The type of the event. Always `response.reasoning_text.delta`.
3951+
*/
3952+
type: 'response.reasoning_text.delta';
3953+
}
3954+
3955+
/**
3956+
* Emitted when a reasoning text is completed.
3957+
*/
3958+
export interface ResponseReasoningTextDoneEvent {
3959+
/**
3960+
* The index of the reasoning content part.
3961+
*/
3962+
content_index: number;
3963+
3964+
/**
3965+
* The ID of the item this reasoning text is associated with.
3966+
*/
3967+
item_id: string;
3968+
3969+
/**
3970+
* The index of the output item this reasoning text is associated with.
3971+
*/
3972+
output_index: number;
3973+
3974+
/**
3975+
* The sequence number of this event.
3976+
*/
3977+
sequence_number: number;
3978+
3979+
/**
3980+
* The full text of the completed reasoning content.
3981+
*/
3982+
text: string;
3983+
3984+
/**
3985+
* The type of the event. Always `response.reasoning_text.done`.
3986+
*/
3987+
type: 'response.reasoning_text.done';
3988+
}
3989+
39743990
/**
39753991
* Emitted when there is a partial refusal text.
39763992
*/
@@ -4079,6 +4095,8 @@ export type ResponseStreamEvent =
40794095
| ResponseReasoningSummaryPartDoneEvent
40804096
| ResponseReasoningSummaryTextDeltaEvent
40814097
| ResponseReasoningSummaryTextDoneEvent
4098+
| ResponseReasoningTextDeltaEvent
4099+
| ResponseReasoningTextDoneEvent
40824100
| ResponseRefusalDeltaEvent
40834101
| ResponseRefusalDoneEvent
40844102
| ResponseTextDeltaEvent
@@ -4099,9 +4117,7 @@ export type ResponseStreamEvent =
40994117
| ResponseMcpListToolsFailedEvent
41004118
| ResponseMcpListToolsInProgressEvent
41014119
| ResponseOutputTextAnnotationAddedEvent
4102-
| ResponseQueuedEvent
4103-
| ResponseReasoningSummaryDeltaEvent
4104-
| ResponseReasoningSummaryDoneEvent;
4120+
| ResponseQueuedEvent;
41054121

41064122
/**
41074123
* Configuration options for a text response from the model. Can be plain text or
@@ -5148,12 +5164,12 @@ export declare namespace Responses {
51485164
type ResponsePrompt as ResponsePrompt,
51495165
type ResponseQueuedEvent as ResponseQueuedEvent,
51505166
type ResponseReasoningItem as ResponseReasoningItem,
5151-
type ResponseReasoningSummaryDeltaEvent as ResponseReasoningSummaryDeltaEvent,
5152-
type ResponseReasoningSummaryDoneEvent as ResponseReasoningSummaryDoneEvent,
51535167
type ResponseReasoningSummaryPartAddedEvent as ResponseReasoningSummaryPartAddedEvent,
51545168
type ResponseReasoningSummaryPartDoneEvent as ResponseReasoningSummaryPartDoneEvent,
51555169
type ResponseReasoningSummaryTextDeltaEvent as ResponseReasoningSummaryTextDeltaEvent,
51565170
type ResponseReasoningSummaryTextDoneEvent as ResponseReasoningSummaryTextDoneEvent,
5171+
type ResponseReasoningTextDeltaEvent as ResponseReasoningTextDeltaEvent,
5172+
type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent,
51575173
type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent,
51585174
type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent,
51595175
type ResponseStatus as ResponseStatus,

src/resources/vector-stores/vector-stores.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,10 @@ export namespace VectorStoreSearchParams {
498498
* Ranking options for search.
499499
*/
500500
export interface RankingOptions {
501-
ranker?: 'auto' | 'default-2024-11-15';
501+
/**
502+
* Enable re-ranking; set to `none` to disable, which can help reduce latency.
503+
*/
504+
ranker?: 'none' | 'auto' | 'default-2024-11-15';
502505

503506
score_threshold?: number;
504507
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '5.11.0'; // x-release-please-version
1+
export const VERSION = '5.12.0'; // x-release-please-version

tests/api-resources/vector-stores/vector-stores.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('resource vectorStores', () => {
8989
query: 'string',
9090
filters: { key: 'key', type: 'eq', value: 'string' },
9191
max_num_results: 1,
92-
ranking_options: { ranker: 'auto', score_threshold: 0 },
92+
ranking_options: { ranker: 'none', score_threshold: 0 },
9393
rewrite_query: true,
9494
});
9595
});

0 commit comments

Comments
 (0)