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
|
@@ -875,9 +875,9 @@ export interface BetaResponse {
|
|
|
875
875
|
[key: string]: string;
|
|
876
876
|
} | null;
|
|
877
877
|
/**
|
|
878
|
-
* Model ID used to generate the response, like `gpt-
|
|
879
|
-
*
|
|
880
|
-
*
|
|
878
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
879
|
+
* range of models with different capabilities, performance characteristics, and
|
|
880
|
+
* price points. Refer to the
|
|
881
881
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
882
882
|
* available models.
|
|
883
883
|
*/
|
|
@@ -1020,8 +1020,6 @@ export interface BetaResponse {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
1022
1022
|
/**
|
|
1023
|
-
* **gpt-5 and o-series models only**
|
|
1024
|
-
*
|
|
1025
1023
|
* Configuration options for
|
|
1026
1024
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1027
1025
|
*/
|
|
@@ -1114,7 +1112,7 @@ export declare namespace BetaResponse {
|
|
|
1114
1112
|
/**
|
|
1115
1113
|
* The reason why the response is incomplete.
|
|
1116
1114
|
*/
|
|
1117
|
-
reason?: 'max_output_tokens' | 'content_filter';
|
|
1115
|
+
reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
|
|
1118
1116
|
}
|
|
1119
1117
|
interface BetaSpecificProgrammaticToolCallingParam {
|
|
1120
1118
|
/**
|
|
@@ -1271,8 +1269,6 @@ export declare namespace BetaResponse {
|
|
|
1271
1269
|
ttl: '30m';
|
|
1272
1270
|
}
|
|
1273
1271
|
/**
|
|
1274
|
-
* **gpt-5 and o-series models only**
|
|
1275
|
-
*
|
|
1276
1272
|
* Configuration options for
|
|
1277
1273
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1278
1274
|
*/
|
|
@@ -8579,10 +8575,6 @@ export interface BetaResponseUsage {
|
|
|
8579
8575
|
* The total number of tokens used.
|
|
8580
8576
|
*/
|
|
8581
8577
|
total_tokens: number;
|
|
8582
|
-
/**
|
|
8583
|
-
* Compute units for the request. Currently null when available.
|
|
8584
|
-
*/
|
|
8585
|
-
compute_units?: number | null;
|
|
8586
8578
|
}
|
|
8587
8579
|
export declare namespace BetaResponseUsage {
|
|
8588
8580
|
/**
|
|
@@ -8820,9 +8812,9 @@ export declare namespace BetaResponsesClientEvent {
|
|
|
8820
8812
|
[key: string]: string;
|
|
8821
8813
|
} | null;
|
|
8822
8814
|
/**
|
|
8823
|
-
* Model ID used to generate the response, like `gpt-
|
|
8824
|
-
*
|
|
8825
|
-
*
|
|
8815
|
+
* Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
|
|
8816
|
+
* range of models with different capabilities, performance characteristics, and
|
|
8817
|
+
* price points. Refer to the
|
|
8826
8818
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
8827
8819
|
* available models.
|
|
8828
8820
|
*/
|
|
@@ -8890,8 +8882,6 @@ export declare namespace BetaResponsesClientEvent {
|
|
|
8890
8882
|
*/
|
|
8891
8883
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
8892
8884
|
/**
|
|
8893
|
-
* **gpt-5 and o-series models only**
|
|
8894
|
-
*
|
|
8895
8885
|
* Configuration options for
|
|
8896
8886
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
8897
8887
|
*/
|
|
@@ -9135,8 +9125,6 @@ export declare namespace BetaResponsesClientEvent {
|
|
|
9135
9125
|
ttl?: '30m';
|
|
9136
9126
|
}
|
|
9137
9127
|
/**
|
|
9138
|
-
* **gpt-5 and o-series models only**
|
|
9139
|
-
*
|
|
9140
9128
|
* Configuration options for
|
|
9141
9129
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
9142
9130
|
*/
|
|
@@ -10559,8 +10547,8 @@ export interface ResponseCreateParamsBase {
|
|
|
10559
10547
|
[key: string]: string;
|
|
10560
10548
|
} | null;
|
|
10561
10549
|
/**
|
|
10562
|
-
* Body param: Model ID used to generate the response, like `gpt-
|
|
10563
|
-
*
|
|
10550
|
+
* Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
|
|
10551
|
+
* offers a wide range of models with different capabilities, performance
|
|
10564
10552
|
* characteristics, and price points. Refer to the
|
|
10565
10553
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10566
10554
|
* available models.
|
|
@@ -10631,9 +10619,7 @@ export interface ResponseCreateParamsBase {
|
|
|
10631
10619
|
*/
|
|
10632
10620
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
10633
10621
|
/**
|
|
10634
|
-
* Body param:
|
|
10635
|
-
*
|
|
10636
|
-
* Configuration options for
|
|
10622
|
+
* Body param: Configuration options for
|
|
10637
10623
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
10638
10624
|
*/
|
|
10639
10625
|
reasoning?: ResponseCreateParams.Reasoning | null;
|
|
@@ -10876,8 +10862,6 @@ export declare namespace ResponseCreateParams {
|
|
|
10876
10862
|
ttl?: '30m';
|
|
10877
10863
|
}
|
|
10878
10864
|
/**
|
|
10879
|
-
* **gpt-5 and o-series models only**
|
|
10880
|
-
*
|
|
10881
10865
|
* Configuration options for
|
|
10882
10866
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
10883
10867
|
*/
|
|
@@ -11044,7 +11028,7 @@ export interface ResponseCancelParams {
|
|
|
11044
11028
|
}
|
|
11045
11029
|
export interface ResponseCompactParams {
|
|
11046
11030
|
/**
|
|
11047
|
-
* Body param: Model ID used to generate the response, like `gpt-5
|
|
11031
|
+
* Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
|
|
11048
11032
|
* offers a wide range of models with different capabilities, performance
|
|
11049
11033
|
* characteristics, and price points. Refer to the
|
|
11050
11034
|
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|