openai 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/auth/x509-transport.js +1 -1
- package/client.js +1 -1
- package/internal/auth/x509-credential-options.js +1 -1
- package/internal/auth/x509-token-exchange.js +1 -1
- package/internal/auth/x509-transport-capability.js +1 -1
- package/internal/auth/x509-transport-registry.js +1 -1
- package/internal/auth/x509-workload-identity-auth.js +1 -1
- package/package.json +7 -3
- package/resources/admin/organization/usage.d.mts +5 -0
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +5 -0
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/batches.d.mts +3 -3
- package/resources/batches.d.ts +3 -3
- package/resources/beta/responses/responses.d.mts +11 -27
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +11 -27
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/responses/ws.d.mts.map +1 -1
- package/resources/beta/responses/ws.d.ts.map +1 -1
- package/resources/beta/responses/ws.js +1 -0
- package/resources/beta/responses/ws.js.map +1 -1
- package/resources/beta/responses/ws.mjs +1 -0
- package/resources/beta/responses/ws.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -4
- package/resources/chat/completions/completions.d.ts +4 -4
- package/resources/completions.d.mts +0 -4
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +0 -4
- package/resources/completions.d.ts.map +1 -1
- package/resources/evals/evals.d.mts +4 -4
- package/resources/evals/evals.d.ts +4 -4
- package/resources/evals/runs/runs.d.mts +1 -1
- package/resources/evals/runs/runs.d.ts +1 -1
- package/resources/responses/responses.d.mts +13 -23
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +13 -23
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws.d.mts.map +1 -1
- package/resources/responses/ws.d.ts.map +1 -1
- package/resources/responses/ws.js +1 -0
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +1 -0
- package/resources/responses/ws.mjs.map +1 -1
- package/resources/shared.d.mts +0 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -2
- package/resources/shared.d.ts.map +1 -1
- package/src/resources/admin/organization/usage.ts +6 -0
- package/src/resources/batches.ts +3 -3
- package/src/resources/beta/responses/responses.ts +11 -28
- package/src/resources/beta/responses/ws.ts +1 -0
- package/src/resources/chat/completions/completions.ts +4 -4
- package/src/resources/completions.ts +0 -5
- package/src/resources/evals/evals.ts +4 -4
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/responses/responses.ts +13 -24
- package/src/resources/responses/ws.ts +1 -0
- package/src/resources/shared.ts +0 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -6638,6 +6638,12 @@ export interface UsageCostsParams {
|
|
|
6638
6638
|
*/
|
|
6639
6639
|
limit?: number;
|
|
6640
6640
|
|
|
6641
|
+
/**
|
|
6642
|
+
* Return only costs for these exact line item names. Each value must match the
|
|
6643
|
+
* complete `line_item` value, for example `gpt-5.6-sol, input_tokens`.
|
|
6644
|
+
*/
|
|
6645
|
+
line_items?: Array<string>;
|
|
6646
|
+
|
|
6641
6647
|
/**
|
|
6642
6648
|
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
6643
6649
|
* previous response.
|
package/src/resources/batches.ts
CHANGED
|
@@ -154,9 +154,9 @@ export interface Batch {
|
|
|
154
154
|
metadata?: Shared.Metadata | null;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* Model ID used to process the batch, like `gpt-5-
|
|
158
|
-
*
|
|
159
|
-
*
|
|
157
|
+
* Model ID used to process the batch, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
158
|
+
* range of models with different capabilities, performance characteristics, and
|
|
159
|
+
* price points. Refer to the
|
|
160
160
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
161
161
|
* available models.
|
|
162
162
|
*/
|
|
@@ -1122,9 +1122,9 @@ export interface BetaResponse {
|
|
|
1122
1122
|
metadata: { [key: string]: string } | null;
|
|
1123
1123
|
|
|
1124
1124
|
/**
|
|
1125
|
-
* Model ID used to generate the response, like `gpt-
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1125
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
1126
|
+
* range of models with different capabilities, performance characteristics, and
|
|
1127
|
+
* price points. Refer to the
|
|
1128
1128
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
1129
1129
|
* available models.
|
|
1130
1130
|
*/
|
|
@@ -1398,8 +1398,6 @@ export interface BetaResponse {
|
|
|
1398
1398
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
1399
1399
|
|
|
1400
1400
|
/**
|
|
1401
|
-
* **gpt-5 and o-series models only**
|
|
1402
|
-
*
|
|
1403
1401
|
* Configuration options for
|
|
1404
1402
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1405
1403
|
*/
|
|
@@ -1501,7 +1499,7 @@ export namespace BetaResponse {
|
|
|
1501
1499
|
/**
|
|
1502
1500
|
* The reason why the response is incomplete.
|
|
1503
1501
|
*/
|
|
1504
|
-
reason?: 'max_output_tokens' | 'content_filter';
|
|
1502
|
+
reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
|
|
1505
1503
|
}
|
|
1506
1504
|
|
|
1507
1505
|
export interface BetaSpecificProgrammaticToolCallingParam {
|
|
@@ -1671,8 +1669,6 @@ export namespace BetaResponse {
|
|
|
1671
1669
|
}
|
|
1672
1670
|
|
|
1673
1671
|
/**
|
|
1674
|
-
* **gpt-5 and o-series models only**
|
|
1675
|
-
*
|
|
1676
1672
|
* Configuration options for
|
|
1677
1673
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1678
1674
|
*/
|
|
@@ -10525,11 +10521,6 @@ export interface BetaResponseUsage {
|
|
|
10525
10521
|
* The total number of tokens used.
|
|
10526
10522
|
*/
|
|
10527
10523
|
total_tokens: number;
|
|
10528
|
-
|
|
10529
|
-
/**
|
|
10530
|
-
* Compute units for the request. Currently null when available.
|
|
10531
|
-
*/
|
|
10532
|
-
compute_units?: number | null;
|
|
10533
10524
|
}
|
|
10534
10525
|
|
|
10535
10526
|
export namespace BetaResponseUsage {
|
|
@@ -10798,9 +10789,9 @@ export namespace BetaResponsesClientEvent {
|
|
|
10798
10789
|
metadata?: { [key: string]: string } | null;
|
|
10799
10790
|
|
|
10800
10791
|
/**
|
|
10801
|
-
* Model ID used to generate the response, like `gpt-
|
|
10802
|
-
*
|
|
10803
|
-
*
|
|
10792
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
10793
|
+
* range of models with different capabilities, performance characteristics, and
|
|
10794
|
+
* price points. Refer to the
|
|
10804
10795
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10805
10796
|
* available models.
|
|
10806
10797
|
*/
|
|
@@ -10980,8 +10971,6 @@ export namespace BetaResponsesClientEvent {
|
|
|
10980
10971
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
10981
10972
|
|
|
10982
10973
|
/**
|
|
10983
|
-
* **gpt-5 and o-series models only**
|
|
10984
|
-
*
|
|
10985
10974
|
* Configuration options for
|
|
10986
10975
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
10987
10976
|
*/
|
|
@@ -11261,8 +11250,6 @@ export namespace BetaResponsesClientEvent {
|
|
|
11261
11250
|
}
|
|
11262
11251
|
|
|
11263
11252
|
/**
|
|
11264
|
-
* **gpt-5 and o-series models only**
|
|
11265
|
-
*
|
|
11266
11253
|
* Configuration options for
|
|
11267
11254
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
11268
11255
|
*/
|
|
@@ -12961,8 +12948,8 @@ export interface ResponseCreateParamsBase {
|
|
|
12961
12948
|
metadata?: { [key: string]: string } | null;
|
|
12962
12949
|
|
|
12963
12950
|
/**
|
|
12964
|
-
* Body param: Model ID used to generate the response, like `gpt-
|
|
12965
|
-
*
|
|
12951
|
+
* Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
|
|
12952
|
+
* offers a wide range of models with different capabilities, performance
|
|
12966
12953
|
* characteristics, and price points. Refer to the
|
|
12967
12954
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
12968
12955
|
* available models.
|
|
@@ -13145,9 +13132,7 @@ export interface ResponseCreateParamsBase {
|
|
|
13145
13132
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
13146
13133
|
|
|
13147
13134
|
/**
|
|
13148
|
-
* Body param:
|
|
13149
|
-
*
|
|
13150
|
-
* Configuration options for
|
|
13135
|
+
* Body param: Configuration options for
|
|
13151
13136
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
13152
13137
|
*/
|
|
13153
13138
|
reasoning?: ResponseCreateParams.Reasoning | null;
|
|
@@ -13426,8 +13411,6 @@ export namespace ResponseCreateParams {
|
|
|
13426
13411
|
}
|
|
13427
13412
|
|
|
13428
13413
|
/**
|
|
13429
|
-
* **gpt-5 and o-series models only**
|
|
13430
|
-
*
|
|
13431
13414
|
* Configuration options for
|
|
13432
13415
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
13433
13416
|
*/
|
|
@@ -13615,7 +13598,7 @@ export interface ResponseCancelParams {
|
|
|
13615
13598
|
|
|
13616
13599
|
export interface ResponseCompactParams {
|
|
13617
13600
|
/**
|
|
13618
|
-
* Body param: Model ID used to generate the response, like `gpt-5
|
|
13601
|
+
* Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
|
|
13619
13602
|
* offers a wide range of models with different capabilities, performance
|
|
13620
13603
|
* characteristics, and price points. Refer to the
|
|
13621
13604
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
@@ -60,7 +60,7 @@ export class Completions extends APIResource {
|
|
|
60
60
|
* const chatCompletion = await client.chat.completions.create(
|
|
61
61
|
* {
|
|
62
62
|
* messages: [{ content: 'string', role: 'developer' }],
|
|
63
|
-
* model: 'gpt-5.
|
|
63
|
+
* model: 'gpt-5.6-sol',
|
|
64
64
|
* },
|
|
65
65
|
* );
|
|
66
66
|
* ```
|
|
@@ -2079,9 +2079,9 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
2079
2079
|
messages: Array<ChatCompletionMessageParam>;
|
|
2080
2080
|
|
|
2081
2081
|
/**
|
|
2082
|
-
* Model ID used to generate the response, like `gpt-
|
|
2083
|
-
* wide range of models with different capabilities, performance
|
|
2084
|
-
* and price points. Refer to the
|
|
2082
|
+
* Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI
|
|
2083
|
+
* offers a wide range of models with different capabilities, performance
|
|
2084
|
+
* characteristics, and price points. Refer to the
|
|
2085
2085
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
2086
2086
|
* available models.
|
|
2087
2087
|
*/
|
|
@@ -140,11 +140,6 @@ export interface CompletionUsage {
|
|
|
140
140
|
*/
|
|
141
141
|
completion_tokens_details?: CompletionUsage.CompletionTokensDetails;
|
|
142
142
|
|
|
143
|
-
/**
|
|
144
|
-
* Compute units for the request. Currently null when available.
|
|
145
|
-
*/
|
|
146
|
-
compute_units?: number | null;
|
|
147
|
-
|
|
148
143
|
/**
|
|
149
144
|
* Breakdown of tokens used in the prompt.
|
|
150
145
|
*/
|
|
@@ -136,7 +136,7 @@ export interface EvalStoredCompletionsDataSourceConfig {
|
|
|
136
136
|
*
|
|
137
137
|
* - Improve the quality of my chatbot
|
|
138
138
|
* - See how well my chatbot handles customer support
|
|
139
|
-
* - Check if o4-mini is better at my usecase than gpt-
|
|
139
|
+
* - Check if o4-mini is better at my usecase than gpt-5.6-sol
|
|
140
140
|
*/
|
|
141
141
|
export interface EvalCreateResponse {
|
|
142
142
|
/**
|
|
@@ -257,7 +257,7 @@ export namespace EvalCreateResponse {
|
|
|
257
257
|
*
|
|
258
258
|
* - Improve the quality of my chatbot
|
|
259
259
|
* - See how well my chatbot handles customer support
|
|
260
|
-
* - Check if o4-mini is better at my usecase than gpt-
|
|
260
|
+
* - Check if o4-mini is better at my usecase than gpt-5.6-sol
|
|
261
261
|
*/
|
|
262
262
|
export interface EvalRetrieveResponse {
|
|
263
263
|
/**
|
|
@@ -378,7 +378,7 @@ export namespace EvalRetrieveResponse {
|
|
|
378
378
|
*
|
|
379
379
|
* - Improve the quality of my chatbot
|
|
380
380
|
* - See how well my chatbot handles customer support
|
|
381
|
-
* - Check if o4-mini is better at my usecase than gpt-
|
|
381
|
+
* - Check if o4-mini is better at my usecase than gpt-5.6-sol
|
|
382
382
|
*/
|
|
383
383
|
export interface EvalUpdateResponse {
|
|
384
384
|
/**
|
|
@@ -499,7 +499,7 @@ export namespace EvalUpdateResponse {
|
|
|
499
499
|
*
|
|
500
500
|
* - Improve the quality of my chatbot
|
|
501
501
|
* - See how well my chatbot handles customer support
|
|
502
|
-
* - Check if o4-mini is better at my usecase than gpt-
|
|
502
|
+
* - Check if o4-mini is better at my usecase than gpt-5.6-sol
|
|
503
503
|
*/
|
|
504
504
|
export interface EvalListResponse {
|
|
505
505
|
/**
|
|
@@ -196,7 +196,7 @@ export namespace CreateEvalCompletionsRunDataSource {
|
|
|
196
196
|
metadata?: Shared.Metadata | null;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* An optional model to filter by (e.g., 'gpt-
|
|
199
|
+
* An optional model to filter by (e.g., 'gpt-5.6-sol').
|
|
200
200
|
*/
|
|
201
201
|
model?: string | null;
|
|
202
202
|
}
|
|
@@ -1068,9 +1068,9 @@ export interface Response {
|
|
|
1068
1068
|
metadata: Shared.Metadata | null;
|
|
1069
1069
|
|
|
1070
1070
|
/**
|
|
1071
|
-
* Model ID used to generate the response, like `gpt-
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1071
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
1072
|
+
* range of models with different capabilities, performance characteristics, and
|
|
1073
|
+
* price points. Refer to the
|
|
1074
1074
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
1075
1075
|
* available models.
|
|
1076
1076
|
*/
|
|
@@ -1233,8 +1233,6 @@ export interface Response {
|
|
|
1233
1233
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
1234
1234
|
|
|
1235
1235
|
/**
|
|
1236
|
-
* **gpt-5 and o-series models only**
|
|
1237
|
-
*
|
|
1238
1236
|
* Configuration options for
|
|
1239
1237
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1240
1238
|
*/
|
|
@@ -1335,7 +1333,7 @@ export namespace Response {
|
|
|
1335
1333
|
/**
|
|
1336
1334
|
* The reason why the response is incomplete.
|
|
1337
1335
|
*/
|
|
1338
|
-
reason?: 'max_output_tokens' | 'content_filter';
|
|
1336
|
+
reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
|
|
1339
1337
|
}
|
|
1340
1338
|
|
|
1341
1339
|
export interface SpecificProgrammaticToolCallingParam {
|
|
@@ -7699,11 +7697,6 @@ export interface ResponseUsage {
|
|
|
7699
7697
|
* The total number of tokens used.
|
|
7700
7698
|
*/
|
|
7701
7699
|
total_tokens: number;
|
|
7702
|
-
|
|
7703
|
-
/**
|
|
7704
|
-
* Compute units for the request. Currently null when available.
|
|
7705
|
-
*/
|
|
7706
|
-
compute_units?: number | null;
|
|
7707
7700
|
}
|
|
7708
7701
|
|
|
7709
7702
|
export namespace ResponseUsage {
|
|
@@ -7904,9 +7897,9 @@ export interface ResponsesClientEvent {
|
|
|
7904
7897
|
metadata?: Shared.Metadata | null;
|
|
7905
7898
|
|
|
7906
7899
|
/**
|
|
7907
|
-
* Model ID used to generate the response, like `gpt-
|
|
7908
|
-
*
|
|
7909
|
-
*
|
|
7900
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
7901
|
+
* range of models with different capabilities, performance characteristics, and
|
|
7902
|
+
* price points. Refer to the
|
|
7910
7903
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
7911
7904
|
* available models.
|
|
7912
7905
|
*/
|
|
@@ -7978,8 +7971,6 @@ export interface ResponsesClientEvent {
|
|
|
7978
7971
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
7979
7972
|
|
|
7980
7973
|
/**
|
|
7981
|
-
* **gpt-5 and o-series models only**
|
|
7982
|
-
*
|
|
7983
7974
|
* Configuration options for
|
|
7984
7975
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
7985
7976
|
*/
|
|
@@ -9855,9 +9846,9 @@ export interface ResponseCreateParamsBase {
|
|
|
9855
9846
|
metadata?: Shared.Metadata | null;
|
|
9856
9847
|
|
|
9857
9848
|
/**
|
|
9858
|
-
* Model ID used to generate the response, like `gpt-
|
|
9859
|
-
*
|
|
9860
|
-
*
|
|
9849
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
9850
|
+
* range of models with different capabilities, performance characteristics, and
|
|
9851
|
+
* price points. Refer to the
|
|
9861
9852
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
9862
9853
|
* available models.
|
|
9863
9854
|
*/
|
|
@@ -9929,8 +9920,6 @@ export interface ResponseCreateParamsBase {
|
|
|
9929
9920
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
9930
9921
|
|
|
9931
9922
|
/**
|
|
9932
|
-
* **gpt-5 and o-series models only**
|
|
9933
|
-
*
|
|
9934
9923
|
* Configuration options for
|
|
9935
9924
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
9936
9925
|
*/
|
|
@@ -10295,9 +10284,9 @@ export interface ResponseRetrieveParamsStreaming extends ResponseRetrieveParamsB
|
|
|
10295
10284
|
|
|
10296
10285
|
export interface ResponseCompactParams {
|
|
10297
10286
|
/**
|
|
10298
|
-
* Model ID used to generate the response, like `gpt-5
|
|
10299
|
-
*
|
|
10300
|
-
*
|
|
10287
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
10288
|
+
* range of models with different capabilities, performance characteristics, and
|
|
10289
|
+
* price points. Refer to the
|
|
10301
10290
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10302
10291
|
* available models.
|
|
10303
10292
|
*/
|
package/src/resources/shared.ts
CHANGED
|
@@ -261,8 +261,6 @@ export type Metadata = { [key: string]: string };
|
|
|
261
261
|
export type OAuthErrorCode = 'invalid_grant' | 'invalid_subject_token' | (string & {});
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
|
-
* **gpt-5 and o-series models only**
|
|
265
|
-
*
|
|
266
264
|
* Configuration options for
|
|
267
265
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
268
266
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Version of the installed OpenAI SDK package. */
|
|
2
|
-
export const VERSION = '7.
|
|
2
|
+
export const VERSION = '7.9.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
/** Version of the installed OpenAI SDK package. */
|
|
5
|
-
exports.VERSION = '7.
|
|
5
|
+
exports.VERSION = '7.9.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED