openai 6.36.0 → 6.37.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 +23 -0
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/usage.d.mts +45 -0
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +45 -0
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -4
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +4 -4
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/images.d.mts +53 -24
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +53 -24
- package/resources/images.d.ts.map +1 -1
- package/resources/realtime/calls.d.mts +10 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +10 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/client-secrets.d.mts +24 -37
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +24 -37
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/index.d.mts +1 -1
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -1
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +545 -10
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +545 -10
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/responses.d.mts +45 -11
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +45 -11
- 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/src/internal/utils/log.ts +2 -0
- package/src/resources/admin/organization/usage.ts +54 -0
- package/src/resources/chat/completions/completions.ts +4 -4
- package/src/resources/images.ts +60 -22
- package/src/resources/realtime/api.md +18 -1
- package/src/resources/realtime/calls.ts +12 -0
- package/src/resources/realtime/client-secrets.ts +25 -37
- package/src/resources/realtime/index.ts +0 -1
- package/src/resources/realtime/realtime.ts +647 -8
- package/src/resources/responses/responses.ts +53 -10
- 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
|
@@ -1182,6 +1182,13 @@ export interface Response {
|
|
|
1182
1182
|
*/
|
|
1183
1183
|
text?: ResponseTextConfig;
|
|
1184
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
1187
|
+
* to return at each token position, each with an associated log probability. In
|
|
1188
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
1189
|
+
*/
|
|
1190
|
+
top_logprobs?: number | null;
|
|
1191
|
+
|
|
1185
1192
|
/**
|
|
1186
1193
|
* The truncation strategy to use for the model response.
|
|
1187
1194
|
*
|
|
@@ -3336,6 +3343,8 @@ export interface ResponseInProgressEvent {
|
|
|
3336
3343
|
* Specify additional output data to include in the model response. Currently
|
|
3337
3344
|
* supported values are:
|
|
3338
3345
|
*
|
|
3346
|
+
* - `web_search_call.results`: Include the search results of the web search tool
|
|
3347
|
+
* call.
|
|
3339
3348
|
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
3340
3349
|
* call.
|
|
3341
3350
|
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
@@ -6105,7 +6114,7 @@ export namespace ResponseTextDeltaEvent {
|
|
|
6105
6114
|
logprob: number;
|
|
6106
6115
|
|
|
6107
6116
|
/**
|
|
6108
|
-
* The log
|
|
6117
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
6109
6118
|
*/
|
|
6110
6119
|
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
6111
6120
|
}
|
|
@@ -6183,7 +6192,7 @@ export namespace ResponseTextDoneEvent {
|
|
|
6183
6192
|
logprob: number;
|
|
6184
6193
|
|
|
6185
6194
|
/**
|
|
6186
|
-
* The log
|
|
6195
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
6187
6196
|
*/
|
|
6188
6197
|
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
6189
6198
|
}
|
|
@@ -6689,8 +6698,9 @@ export interface ResponsesClientEvent {
|
|
|
6689
6698
|
tools?: Array<Tool>;
|
|
6690
6699
|
|
|
6691
6700
|
/**
|
|
6692
|
-
* An integer between 0 and 20 specifying the number of most likely tokens
|
|
6693
|
-
* return at each token position, each with an associated log probability.
|
|
6701
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
6702
|
+
* to return at each token position, each with an associated log probability. In
|
|
6703
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
6694
6704
|
*/
|
|
6695
6705
|
top_logprobs?: number | null;
|
|
6696
6706
|
|
|
@@ -7069,8 +7079,18 @@ export namespace Tool {
|
|
|
7069
7079
|
action?: 'generate' | 'edit' | 'auto';
|
|
7070
7080
|
|
|
7071
7081
|
/**
|
|
7072
|
-
*
|
|
7073
|
-
*
|
|
7082
|
+
* Allows to set transparency for the background of the generated image(s). This
|
|
7083
|
+
* parameter is only supported for GPT image models that support transparent
|
|
7084
|
+
* backgrounds. Must be one of `transparent`, `opaque`, or `auto` (default value).
|
|
7085
|
+
* When `auto` is used, the model will automatically determine the best background
|
|
7086
|
+
* for the image.
|
|
7087
|
+
*
|
|
7088
|
+
* `gpt-image-2` and `gpt-image-2-2026-04-21` do not support transparent
|
|
7089
|
+
* backgrounds. Requests with `background` set to `transparent` will return an
|
|
7090
|
+
* error for these models; use `opaque` or `auto` instead.
|
|
7091
|
+
*
|
|
7092
|
+
* If `transparent`, the output format needs to support transparency, so it should
|
|
7093
|
+
* be set to either `png` (default value) or `webp`.
|
|
7074
7094
|
*/
|
|
7075
7095
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
7076
7096
|
|
|
@@ -7091,7 +7111,14 @@ export namespace Tool {
|
|
|
7091
7111
|
/**
|
|
7092
7112
|
* The image generation model to use. Default: `gpt-image-1`.
|
|
7093
7113
|
*/
|
|
7094
|
-
model?:
|
|
7114
|
+
model?:
|
|
7115
|
+
| (string & {})
|
|
7116
|
+
| 'gpt-image-1'
|
|
7117
|
+
| 'gpt-image-1-mini'
|
|
7118
|
+
| 'gpt-image-2'
|
|
7119
|
+
| 'gpt-image-2-2026-04-21'
|
|
7120
|
+
| 'gpt-image-1.5'
|
|
7121
|
+
| 'chatgpt-image-latest';
|
|
7095
7122
|
|
|
7096
7123
|
/**
|
|
7097
7124
|
* Moderation level for the generated image. Default: `auto`.
|
|
@@ -7122,10 +7149,19 @@ export namespace Tool {
|
|
|
7122
7149
|
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
7123
7150
|
|
|
7124
7151
|
/**
|
|
7125
|
-
* The size of the generated
|
|
7126
|
-
*
|
|
7152
|
+
* The size of the generated images. For `gpt-image-2` and
|
|
7153
|
+
* `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
|
|
7154
|
+
* strings, for example `1536x864`. Width and height must both be divisible by 16
|
|
7155
|
+
* and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
|
|
7156
|
+
* `2560x1440` are experimental, and the maximum supported resolution is
|
|
7157
|
+
* `3840x2160`. The requested size must also satisfy the model's current pixel and
|
|
7158
|
+
* edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
|
|
7159
|
+
* supported by the GPT image models; `auto` is supported for models that allow
|
|
7160
|
+
* automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
|
|
7161
|
+
* `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
|
|
7162
|
+
* `1024x1792`.
|
|
7127
7163
|
*/
|
|
7128
|
-
size?: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
7164
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
7129
7165
|
}
|
|
7130
7166
|
|
|
7131
7167
|
export namespace ImageGeneration {
|
|
@@ -7707,6 +7743,13 @@ export interface ResponseCreateParamsBase {
|
|
|
7707
7743
|
*/
|
|
7708
7744
|
tools?: Array<Tool>;
|
|
7709
7745
|
|
|
7746
|
+
/**
|
|
7747
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
7748
|
+
* to return at each token position, each with an associated log probability. In
|
|
7749
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
7750
|
+
*/
|
|
7751
|
+
top_logprobs?: number | null;
|
|
7752
|
+
|
|
7710
7753
|
/**
|
|
7711
7754
|
* An alternative to sampling with temperature, called nucleus sampling, where the
|
|
7712
7755
|
* model considers the results of the tokens with top_p probability mass. So 0.1
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.37.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.37.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|