openai 7.10.0 → 7.12.1
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 +196 -0
- package/README.md +7 -5
- package/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/_vendor/partial-json-parser/parser.js +4 -3
- package/_vendor/partial-json-parser/parser.js.map +1 -1
- package/_vendor/partial-json-parser/parser.mjs +4 -3
- package/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.js +19 -12
- package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs +19 -12
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js +6 -2
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +6 -2
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -1
- package/auth/subject-token-providers.d.mts.map +1 -1
- package/auth/subject-token-providers.d.ts.map +1 -1
- package/auth/subject-token-providers.js +10 -5
- package/auth/subject-token-providers.js.map +1 -1
- package/auth/subject-token-providers.mjs +10 -5
- package/auth/subject-token-providers.mjs.map +1 -1
- package/auth/workload-identity-auth.d.mts.map +1 -1
- package/auth/workload-identity-auth.d.ts.map +1 -1
- package/auth/workload-identity-auth.js +21 -11
- package/auth/workload-identity-auth.js.map +1 -1
- package/auth/workload-identity-auth.mjs +21 -11
- package/auth/workload-identity-auth.mjs.map +1 -1
- package/azure.d.mts.map +1 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +31 -2
- package/azure.js.map +1 -1
- package/azure.mjs +32 -3
- package/azure.mjs.map +1 -1
- package/beta/realtime/internal-base.d.mts.map +1 -1
- package/beta/realtime/internal-base.d.ts.map +1 -1
- package/beta/realtime/internal-base.js +3 -2
- package/beta/realtime/internal-base.js.map +1 -1
- package/beta/realtime/internal-base.mjs +3 -2
- package/beta/realtime/internal-base.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts +2 -0
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts +2 -0
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +12 -7
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +12 -7
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts +2 -0
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts +2 -0
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +7 -5
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +7 -5
- package/beta/realtime/ws.mjs.map +1 -1
- package/client.d.mts +9 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -1
- package/client.d.ts.map +1 -1
- package/client.js +17 -4
- package/client.js.map +1 -1
- package/client.mjs +17 -4
- package/client.mjs.map +1 -1
- package/core/EventEmitter.d.mts +2 -1
- package/core/EventEmitter.d.mts.map +1 -1
- package/core/EventEmitter.d.ts +2 -1
- package/core/EventEmitter.d.ts.map +1 -1
- package/core/EventEmitter.js +2 -1
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +2 -1
- package/core/EventEmitter.mjs.map +1 -1
- package/core/pagination.js +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.d.mts +8 -0
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +8 -0
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +68 -15
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +68 -15
- package/core/streaming.mjs.map +1 -1
- package/helpers/audio.d.mts +1 -1
- package/helpers/audio.d.mts.map +1 -1
- package/helpers/audio.d.ts +1 -1
- package/helpers/audio.d.ts.map +1 -1
- package/helpers/audio.js +25 -5
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +25 -5
- package/helpers/audio.mjs.map +1 -1
- package/helpers/zod.d.mts +28 -15
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +28 -15
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +30 -23
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +30 -23
- package/helpers/zod.mjs.map +1 -1
- package/index.js +4 -5
- package/internal/bedrock.d.mts +11 -0
- package/internal/bedrock.d.mts.map +1 -1
- package/internal/bedrock.d.ts +11 -0
- package/internal/bedrock.d.ts.map +1 -1
- package/internal/bedrock.js +71 -55
- package/internal/bedrock.js.map +1 -1
- package/internal/bedrock.mjs +70 -55
- package/internal/bedrock.mjs.map +1 -1
- package/internal/detect-platform.js +2 -2
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +2 -2
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +3 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +3 -2
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +4 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +4 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.js +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/realtime-credentials.d.mts +15 -0
- package/internal/realtime-credentials.d.mts.map +1 -0
- package/internal/realtime-credentials.d.ts +15 -0
- package/internal/realtime-credentials.d.ts.map +1 -0
- package/internal/realtime-credentials.js +23 -0
- package/internal/realtime-credentials.js.map +1 -0
- package/internal/realtime-credentials.mjs +19 -0
- package/internal/realtime-credentials.mjs.map +1 -0
- package/internal/responses/response-accumulator.d.mts.map +1 -1
- package/internal/responses/response-accumulator.d.ts.map +1 -1
- package/internal/responses/response-accumulator.js +2 -1
- package/internal/responses/response-accumulator.js.map +1 -1
- package/internal/responses/response-accumulator.mjs +2 -1
- package/internal/responses/response-accumulator.mjs.map +1 -1
- package/internal/to-file.d.mts +2 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +2 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +6 -5
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +3 -3
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +3 -3
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +2 -0
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +2 -0
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +12 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +11 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +3 -0
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -0
- package/internal/utils/base64.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +31 -9
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +31 -9
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.mts +4 -1
- package/lib/AssistantStream.d.mts.map +1 -1
- package/lib/AssistantStream.d.ts +4 -1
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +23 -8
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +24 -9
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.mts +6 -3
- package/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +6 -3
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js +7 -4
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs +7 -4
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +6 -0
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +7 -1
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +1 -0
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +1 -0
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventEmitter.d.mts +3 -1
- package/lib/EventEmitter.d.mts.map +1 -1
- package/lib/EventEmitter.d.ts +3 -1
- package/lib/EventEmitter.d.ts.map +1 -1
- package/lib/EventEmitter.js +2 -1
- package/lib/EventEmitter.js.map +1 -1
- package/lib/EventEmitter.mjs +2 -1
- package/lib/EventEmitter.mjs.map +1 -1
- package/lib/EventStream.d.mts +2 -1
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +2 -1
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +99 -46
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +99 -46
- package/lib/EventStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts +5 -4
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts +5 -4
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +21 -7
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +21 -7
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/RunnableFunction.d.mts +2 -2
- package/lib/RunnableFunction.d.mts.map +1 -1
- package/lib/RunnableFunction.d.ts +2 -2
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/embeddings.d.mts.map +1 -1
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/embeddings.js +18 -12
- package/lib/embeddings.js.map +1 -1
- package/lib/embeddings.mjs +18 -12
- package/lib/embeddings.mjs.map +1 -1
- package/lib/file-processing.d.mts +3 -2
- package/lib/file-processing.d.mts.map +1 -1
- package/lib/file-processing.d.ts +3 -2
- package/lib/file-processing.d.ts.map +1 -1
- package/lib/file-processing.js +5 -4
- package/lib/file-processing.js.map +1 -1
- package/lib/file-processing.mjs +5 -4
- package/lib/file-processing.mjs.map +1 -1
- package/lib/parser.d.mts +16 -4
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +16 -4
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +1 -1
- package/lib/parser.mjs.map +1 -1
- package/lib/polling.d.mts +2 -2
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts +2 -2
- package/lib/polling.d.ts.map +1 -1
- package/lib/polling.js +5 -4
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs +5 -4
- package/lib/polling.mjs.map +1 -1
- package/lib/responses/EventTypes.d.mts +2 -2
- package/lib/responses/EventTypes.d.mts.map +1 -1
- package/lib/responses/EventTypes.d.ts +2 -2
- package/lib/responses/EventTypes.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.d.mts +3 -2
- package/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts +3 -2
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js +27 -4
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs +27 -4
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +1 -0
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +1 -0
- package/lib/transform.mjs.map +1 -1
- package/lib/vector-store-polling.d.mts +2 -2
- package/lib/vector-store-polling.d.ts +2 -2
- package/lib/vector-store-polling.js +3 -3
- package/lib/vector-store-polling.js.map +1 -1
- package/lib/vector-store-polling.mjs +3 -3
- package/lib/vector-store-polling.mjs.map +1 -1
- package/lib/vector-store-upload.d.mts +2 -1
- package/lib/vector-store-upload.d.mts.map +1 -1
- package/lib/vector-store-upload.d.ts +2 -1
- package/lib/vector-store-upload.d.ts.map +1 -1
- package/lib/vector-store-upload.js +5 -1
- package/lib/vector-store-upload.js.map +1 -1
- package/lib/vector-store-upload.mjs +5 -1
- package/lib/vector-store-upload.mjs.map +1 -1
- package/package.json +1 -1
- package/providers/bedrock/aws.d.mts.map +1 -1
- package/providers/bedrock/aws.d.ts.map +1 -1
- package/providers/bedrock/aws.js +14 -16
- package/providers/bedrock/aws.js.map +1 -1
- package/providers/bedrock/aws.mjs +15 -17
- package/providers/bedrock/aws.mjs.map +1 -1
- package/realtime/internal-base.d.mts.map +1 -1
- package/realtime/internal-base.d.ts.map +1 -1
- package/realtime/internal-base.js +3 -5
- package/realtime/internal-base.js.map +1 -1
- package/realtime/internal-base.mjs +3 -5
- package/realtime/internal-base.mjs.map +1 -1
- package/realtime/websocket.d.mts +2 -0
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts +2 -0
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +12 -6
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +12 -6
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts +2 -0
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts +2 -0
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +7 -4
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +7 -4
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +9 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +9 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
- package/resources/beta/responses/responses.d.mts +112 -33
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +112 -33
- 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/conversations/items.d.mts +9 -0
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +9 -0
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/images.d.mts +73 -58
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +73 -58
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js.map +1 -1
- package/resources/images.mjs.map +1 -1
- package/resources/responses/responses.d.mts +112 -32
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +112 -32
- 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/webhooks/webhooks.d.mts +6 -4
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +6 -4
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/src/_vendor/partial-json-parser/parser.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/string.ts +1 -1
- package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +23 -16
- package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +11 -6
- package/src/auth/subject-token-providers.ts +12 -7
- package/src/auth/workload-identity-auth.ts +27 -12
- package/src/azure.ts +34 -3
- package/src/beta/realtime/internal-base.ts +3 -2
- package/src/beta/realtime/websocket.ts +17 -7
- package/src/beta/realtime/ws.ts +9 -5
- package/src/client.ts +19 -4
- package/src/core/EventEmitter.ts +5 -8
- package/src/core/pagination.ts +1 -1
- package/src/core/streaming.ts +69 -13
- package/src/helpers/audio.ts +27 -6
- package/src/helpers/zod.ts +78 -29
- package/src/internal/bedrock.ts +84 -58
- package/src/internal/detect-platform.ts +2 -2
- package/src/internal/errors.ts +3 -2
- package/src/internal/headers.ts +7 -5
- package/src/internal/parse.ts +1 -1
- package/src/internal/realtime-credentials.ts +27 -0
- package/src/internal/responses/response-accumulator.ts +1 -0
- package/src/internal/to-file.ts +6 -5
- package/src/internal/uploads.ts +12 -1
- package/src/internal/utils/base64.ts +3 -0
- package/src/lib/AbstractChatCompletionRunner.ts +31 -6
- package/src/lib/AssistantStream.ts +25 -11
- package/src/lib/ChatCompletionRunner.ts +8 -4
- package/src/lib/ChatCompletionStream.ts +8 -0
- package/src/lib/ChatCompletionStreamingRunner.ts +1 -0
- package/src/lib/EventEmitter.ts +17 -8
- package/src/lib/EventStream.ts +105 -52
- package/src/lib/ResponsesParser.ts +33 -12
- package/src/lib/RunnableFunction.ts +2 -2
- package/src/lib/embeddings.ts +18 -12
- package/src/lib/file-processing.ts +5 -4
- package/src/lib/parser.ts +35 -11
- package/src/lib/polling.ts +5 -4
- package/src/lib/responses/EventTypes.ts +3 -69
- package/src/lib/responses/ResponseInputItems.ts +29 -4
- package/src/lib/transform.ts +1 -0
- package/src/lib/vector-store-polling.ts +3 -3
- package/src/lib/vector-store-upload.ts +5 -1
- package/src/providers/bedrock/aws.ts +23 -24
- package/src/realtime/internal-base.ts +3 -5
- package/src/realtime/websocket.ts +14 -6
- package/src/realtime/ws.ts +9 -4
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +11 -0
- package/src/resources/beta/responses/responses.ts +143 -31
- package/src/resources/conversations/items.ts +11 -0
- package/src/resources/images.ts +76 -57
- package/src/resources/responses/responses.ts +143 -30
- package/src/resources/webhooks/webhooks.ts +6 -4
- 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
package/src/resources/images.ts
CHANGED
|
@@ -31,8 +31,7 @@ export class Images extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Creates an edited or extended image given one or more source images and a
|
|
34
|
-
* prompt. This endpoint supports GPT Image models
|
|
35
|
-
* `gpt-image-1-mini`, and `chatgpt-image-latest`) and `dall-e-2`.
|
|
34
|
+
* prompt. This endpoint supports GPT Image models and `dall-e-2`.
|
|
36
35
|
*
|
|
37
36
|
* @example
|
|
38
37
|
* ```ts
|
|
@@ -151,12 +150,12 @@ export interface ImageEditCompletedEvent {
|
|
|
151
150
|
/**
|
|
152
151
|
* The quality setting for the edited image.
|
|
153
152
|
*/
|
|
154
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
153
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
|
-
* The
|
|
156
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
158
157
|
*/
|
|
159
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
158
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
160
159
|
|
|
161
160
|
/**
|
|
162
161
|
* The type of the event. Always `image_edit.completed`.
|
|
@@ -247,12 +246,12 @@ export interface ImageEditPartialImageEvent {
|
|
|
247
246
|
/**
|
|
248
247
|
* The quality setting for the requested edited image.
|
|
249
248
|
*/
|
|
250
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
249
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
251
250
|
|
|
252
251
|
/**
|
|
253
|
-
* The
|
|
252
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
254
253
|
*/
|
|
255
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
254
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
256
255
|
|
|
257
256
|
/**
|
|
258
257
|
* The type of the event. Always `image_edit.partial_image`.
|
|
@@ -292,12 +291,12 @@ export interface ImageGenCompletedEvent {
|
|
|
292
291
|
/**
|
|
293
292
|
* The quality setting for the generated image.
|
|
294
293
|
*/
|
|
295
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
294
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
296
295
|
|
|
297
296
|
/**
|
|
298
|
-
* The
|
|
297
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
299
298
|
*/
|
|
300
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
299
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
301
300
|
|
|
302
301
|
/**
|
|
303
302
|
* The type of the event. Always `image_generation.completed`.
|
|
@@ -388,12 +387,12 @@ export interface ImageGenPartialImageEvent {
|
|
|
388
387
|
/**
|
|
389
388
|
* The quality setting for the requested image.
|
|
390
389
|
*/
|
|
391
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
390
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
392
391
|
|
|
393
392
|
/**
|
|
394
|
-
* The
|
|
393
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
395
394
|
*/
|
|
396
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
395
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
397
396
|
|
|
398
397
|
/**
|
|
399
398
|
* The type of the event. Always `image_generation.partial_image`.
|
|
@@ -411,6 +410,10 @@ export type ImageModel =
|
|
|
411
410
|
| 'gpt-image-1-mini'
|
|
412
411
|
| 'gpt-image-2'
|
|
413
412
|
| 'gpt-image-2-2026-04-21'
|
|
413
|
+
| 'gpt-image-2.5-sunburst'
|
|
414
|
+
| 'gpt-image-2.5-sunburst-2026-09-08'
|
|
415
|
+
| 'gpt-image-2.5-flare'
|
|
416
|
+
| 'gpt-image-2.5-flare-2026-09-08'
|
|
414
417
|
| 'gpt-image-1.5'
|
|
415
418
|
| 'chatgpt-image-latest'
|
|
416
419
|
| 'dall-e-2'
|
|
@@ -442,15 +445,15 @@ export interface ImagesResponse {
|
|
|
442
445
|
output_format?: 'png' | 'webp' | 'jpeg';
|
|
443
446
|
|
|
444
447
|
/**
|
|
445
|
-
* The quality of the image generated.
|
|
448
|
+
* The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or
|
|
449
|
+
* `max`.
|
|
446
450
|
*/
|
|
447
|
-
quality?: 'low' | 'medium' | 'high';
|
|
451
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
448
452
|
|
|
449
453
|
/**
|
|
450
|
-
* The
|
|
451
|
-
* `1536x1024`.
|
|
454
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
452
455
|
*/
|
|
453
|
-
size?: '1024x1024' | '1024x1536' | '1536x1024';
|
|
456
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024';
|
|
454
457
|
|
|
455
458
|
/**
|
|
456
459
|
* For `gpt-image-1` only, the token usage information for the image generation.
|
|
@@ -568,9 +571,11 @@ export interface ImageEditParamsBase {
|
|
|
568
571
|
* The image(s) to edit. Must be a supported image file or an array of images.
|
|
569
572
|
*
|
|
570
573
|
* For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
|
|
571
|
-
* `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
+
* `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
575
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
576
|
+
* `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
|
|
577
|
+
* be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
|
|
578
|
+
* images.
|
|
574
579
|
*
|
|
575
580
|
* For `dall-e-2`, you can only provide one image, and it should be a square `png`
|
|
576
581
|
* file less than 4MB.
|
|
@@ -588,9 +593,11 @@ export interface ImageEditParamsBase {
|
|
|
588
593
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
589
594
|
* the model will automatically determine the best background for the image.
|
|
590
595
|
*
|
|
591
|
-
*
|
|
592
|
-
* `
|
|
593
|
-
*
|
|
596
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
597
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
598
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
599
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
600
|
+
* set the output format to `png` or `webp`.
|
|
594
601
|
*/
|
|
595
602
|
background?: 'transparent' | 'opaque' | 'auto' | null;
|
|
596
603
|
|
|
@@ -613,7 +620,9 @@ export interface ImageEditParamsBase {
|
|
|
613
620
|
/**
|
|
614
621
|
* The model to use for image generation. One of `dall-e-2` or a GPT image model
|
|
615
622
|
* (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
|
|
616
|
-
* `gpt-image-2-2026-04-21`,
|
|
623
|
+
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
624
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
625
|
+
* `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`). Defaults to
|
|
617
626
|
* `gpt-image-1.5`.
|
|
618
627
|
*/
|
|
619
628
|
model?: (string & {}) | ImageModel | null;
|
|
@@ -648,10 +657,12 @@ export interface ImageEditParamsBase {
|
|
|
648
657
|
partial_images?: number | null;
|
|
649
658
|
|
|
650
659
|
/**
|
|
651
|
-
* The quality of the image that will be generated for GPT image models.
|
|
652
|
-
*
|
|
660
|
+
* The quality of the image that will be generated for GPT image models. The GPT
|
|
661
|
+
* image models support `low`, `medium`, and `high`. `gpt-image-2.5-sunburst` and
|
|
662
|
+
* `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support
|
|
663
|
+
* `xhigh` and `max`. Defaults to `auto`.
|
|
653
664
|
*/
|
|
654
|
-
quality?: 'standard' | 'low' | 'medium' | 'high' | 'auto' | null;
|
|
665
|
+
quality?: 'standard' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
655
666
|
|
|
656
667
|
/**
|
|
657
668
|
* The format in which the generated images are returned. Must be one of `url` or
|
|
@@ -662,17 +673,18 @@ export interface ImageEditParamsBase {
|
|
|
662
673
|
response_format?: 'url' | 'b64_json' | null;
|
|
663
674
|
|
|
664
675
|
/**
|
|
665
|
-
* The size of the generated images. For `gpt-image-2`
|
|
666
|
-
* `gpt-image-2-2026-
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
674
|
-
* `
|
|
675
|
-
* `
|
|
676
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
677
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
678
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
679
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
680
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
681
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
682
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
683
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
684
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
685
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
686
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
687
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
676
688
|
*/
|
|
677
689
|
size?: (string & {}) | '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null;
|
|
678
690
|
|
|
@@ -729,17 +741,21 @@ export interface ImageGenerateParamsBase {
|
|
|
729
741
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
730
742
|
* the model will automatically determine the best background for the image.
|
|
731
743
|
*
|
|
732
|
-
*
|
|
733
|
-
* `
|
|
734
|
-
*
|
|
744
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
745
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
746
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
747
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
748
|
+
* set the output format to `png` or `webp`.
|
|
735
749
|
*/
|
|
736
750
|
background?: 'transparent' | 'opaque' | 'auto' | null;
|
|
737
751
|
|
|
738
752
|
/**
|
|
739
753
|
* The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
|
|
740
754
|
* image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
|
|
741
|
-
*
|
|
742
|
-
*
|
|
755
|
+
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
756
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
757
|
+
* `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
|
|
758
|
+
* specific to the GPT image models is used.
|
|
743
759
|
*/
|
|
744
760
|
model?: (string & {}) | ImageModel | null;
|
|
745
761
|
|
|
@@ -785,10 +801,12 @@ export interface ImageGenerateParamsBase {
|
|
|
785
801
|
* - `auto` (default value) will automatically select the best quality for the
|
|
786
802
|
* given model.
|
|
787
803
|
* - `high`, `medium` and `low` are supported for the GPT image models.
|
|
804
|
+
* - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
|
|
805
|
+
* `2026-09-08` snapshots, also support `xhigh` and `max`.
|
|
788
806
|
* - `hd` and `standard` are supported for `dall-e-3`.
|
|
789
807
|
* - `standard` is the only option for `dall-e-2`.
|
|
790
808
|
*/
|
|
791
|
-
quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null;
|
|
809
|
+
quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
792
810
|
|
|
793
811
|
/**
|
|
794
812
|
* The format in which generated images with `dall-e-2` and `dall-e-3` are
|
|
@@ -799,17 +817,18 @@ export interface ImageGenerateParamsBase {
|
|
|
799
817
|
response_format?: 'url' | 'b64_json' | null;
|
|
800
818
|
|
|
801
819
|
/**
|
|
802
|
-
* The size of the generated images. For `gpt-image-2`
|
|
803
|
-
* `gpt-image-2-2026-
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
*
|
|
810
|
-
*
|
|
811
|
-
* `
|
|
812
|
-
* `
|
|
820
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
821
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
822
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
823
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
824
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
825
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
826
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
827
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
828
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
829
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
830
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
831
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
813
832
|
*/
|
|
814
833
|
size?:
|
|
815
834
|
| (string & {})
|
|
@@ -1212,6 +1212,15 @@ export interface Response {
|
|
|
1212
1212
|
*/
|
|
1213
1213
|
prompt?: ResponsePrompt | null;
|
|
1214
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* Prompt cache diagnostics requested for this response.
|
|
1217
|
+
*/
|
|
1218
|
+
prompt_cache_diagnostics?:
|
|
1219
|
+
| Response.CacheMiss
|
|
1220
|
+
| Response.CacheHit
|
|
1221
|
+
| Response.ComparisonResponseNotFound
|
|
1222
|
+
| Response.Unavailable;
|
|
1223
|
+
|
|
1215
1224
|
/**
|
|
1216
1225
|
* Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
1217
1226
|
* hit rates. Replaces the `user` field.
|
|
@@ -1502,6 +1511,47 @@ export namespace Response {
|
|
|
1502
1511
|
}
|
|
1503
1512
|
}
|
|
1504
1513
|
|
|
1514
|
+
export interface CacheMiss {
|
|
1515
|
+
/**
|
|
1516
|
+
* The estimated number of input tokens affected after the first detected
|
|
1517
|
+
* divergence.
|
|
1518
|
+
*/
|
|
1519
|
+
cache_missed_tokens: number;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* The reason prompt cache reuse did not occur.
|
|
1523
|
+
*/
|
|
1524
|
+
reason:
|
|
1525
|
+
| 'model_changed'
|
|
1526
|
+
| 'prompt_cache_key_changed'
|
|
1527
|
+
| 'tools_changed'
|
|
1528
|
+
| 'text_format_changed'
|
|
1529
|
+
| 'reasoning_effort_changed'
|
|
1530
|
+
| 'verbosity_changed'
|
|
1531
|
+
| 'context_compacted'
|
|
1532
|
+
| 'input_changed'
|
|
1533
|
+
| 'service_tier_changed';
|
|
1534
|
+
|
|
1535
|
+
type: 'cache_miss';
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* The raw token count of the reusable prefix in the compared response.
|
|
1539
|
+
*/
|
|
1540
|
+
comparison_reusable_tokens?: number;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
export interface CacheHit {
|
|
1544
|
+
type: 'cache_hit';
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
export interface ComparisonResponseNotFound {
|
|
1548
|
+
type: 'comparison_response_not_found';
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
export interface Unavailable {
|
|
1552
|
+
type: 'unavailable';
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1505
1555
|
/**
|
|
1506
1556
|
* The prompt-caching options that were applied to the response. Supported for
|
|
1507
1557
|
* `gpt-5.6` and later models.
|
|
@@ -1516,6 +1566,11 @@ export namespace Response {
|
|
|
1516
1566
|
* The minimum lifetime applied to each cache breakpoint.
|
|
1517
1567
|
*/
|
|
1518
1568
|
ttl: '30m';
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* The response ID supplied as the prompt cache diagnostics comparison.
|
|
1572
|
+
*/
|
|
1573
|
+
comparison_response_id?: string | null;
|
|
1519
1574
|
}
|
|
1520
1575
|
}
|
|
1521
1576
|
|
|
@@ -3237,11 +3292,6 @@ export interface ResponseFunctionCallArgumentsDoneEvent {
|
|
|
3237
3292
|
*/
|
|
3238
3293
|
item_id: string;
|
|
3239
3294
|
|
|
3240
|
-
/**
|
|
3241
|
-
* The name of the function that was called.
|
|
3242
|
-
*/
|
|
3243
|
-
name: string;
|
|
3244
|
-
|
|
3245
3295
|
/**
|
|
3246
3296
|
* The index of the output item.
|
|
3247
3297
|
*/
|
|
@@ -3694,7 +3744,7 @@ export interface ResponseFunctionWebSearch {
|
|
|
3694
3744
|
/**
|
|
3695
3745
|
* The status of the web search tool call.
|
|
3696
3746
|
*/
|
|
3697
|
-
status: 'in_progress' | 'searching' | 'completed' | 'failed';
|
|
3747
|
+
status: 'in_progress' | 'searching' | 'completed' | 'failed' | 'incomplete';
|
|
3698
3748
|
|
|
3699
3749
|
/**
|
|
3700
3750
|
* The type of the web search tool call. Always `web_search_call`.
|
|
@@ -4524,6 +4574,17 @@ export namespace ResponseInputItem {
|
|
|
4524
4574
|
* The type of the image generation call. Always `image_generation_call`.
|
|
4525
4575
|
*/
|
|
4526
4576
|
type: 'image_generation_call';
|
|
4577
|
+
|
|
4578
|
+
/**
|
|
4579
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
4580
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
4581
|
+
*/
|
|
4582
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
4586
|
+
*/
|
|
4587
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
4527
4588
|
}
|
|
4528
4589
|
|
|
4529
4590
|
/**
|
|
@@ -5430,6 +5491,17 @@ export namespace ResponseItem {
|
|
|
5430
5491
|
* The type of the image generation call. Always `image_generation_call`.
|
|
5431
5492
|
*/
|
|
5432
5493
|
type: 'image_generation_call';
|
|
5494
|
+
|
|
5495
|
+
/**
|
|
5496
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
5497
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
5498
|
+
*/
|
|
5499
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
5500
|
+
|
|
5501
|
+
/**
|
|
5502
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
5503
|
+
*/
|
|
5504
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
5433
5505
|
}
|
|
5434
5506
|
|
|
5435
5507
|
/**
|
|
@@ -6071,6 +6143,17 @@ export namespace ResponseOutputItem {
|
|
|
6071
6143
|
* The type of the image generation call. Always `image_generation_call`.
|
|
6072
6144
|
*/
|
|
6073
6145
|
type: 'image_generation_call';
|
|
6146
|
+
|
|
6147
|
+
/**
|
|
6148
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
6149
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
6150
|
+
*/
|
|
6151
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
6152
|
+
|
|
6153
|
+
/**
|
|
6154
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
6155
|
+
*/
|
|
6156
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
6074
6157
|
}
|
|
6075
6158
|
|
|
6076
6159
|
/**
|
|
@@ -8720,6 +8803,9 @@ export namespace ResponsesClientEvent {
|
|
|
8720
8803
|
|
|
8721
8804
|
/**
|
|
8722
8805
|
* Whether to store the generated model response for later retrieval via API.
|
|
8806
|
+
* Defaults to true when omitted. If set to true, response data will be stored for
|
|
8807
|
+
* at least 30 days, subject to the
|
|
8808
|
+
* [data retention exceptions](/api/docs/guides/your-data#v1responses).
|
|
8723
8809
|
*/
|
|
8724
8810
|
store?: boolean | null;
|
|
8725
8811
|
|
|
@@ -8915,6 +9001,12 @@ export namespace ResponsesClientEvent {
|
|
|
8915
9001
|
* for current details.
|
|
8916
9002
|
*/
|
|
8917
9003
|
export interface PromptCacheOptions {
|
|
9004
|
+
/**
|
|
9005
|
+
* The ID of a response to compare when diagnosing prompt cache reuse. Supplying
|
|
9006
|
+
* this field requests prompt cache diagnostics when the feature is enabled.
|
|
9007
|
+
*/
|
|
9008
|
+
comparison_response_id?: string | null;
|
|
9009
|
+
|
|
8918
9010
|
/**
|
|
8919
9011
|
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
8920
9012
|
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
@@ -10086,9 +10178,11 @@ export namespace Tool {
|
|
|
10086
10178
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
10087
10179
|
* the model will automatically determine the best background for the image.
|
|
10088
10180
|
*
|
|
10089
|
-
*
|
|
10090
|
-
* `
|
|
10091
|
-
*
|
|
10181
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
10182
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
10183
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
10184
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
10185
|
+
* set the output format to `png` or `webp`.
|
|
10092
10186
|
*/
|
|
10093
10187
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
10094
10188
|
|
|
@@ -10108,7 +10202,9 @@ export namespace Tool {
|
|
|
10108
10202
|
|
|
10109
10203
|
/**
|
|
10110
10204
|
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
10111
|
-
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
10205
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
10206
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
10207
|
+
* `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
|
|
10112
10208
|
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
10113
10209
|
*/
|
|
10114
10210
|
model?:
|
|
@@ -10117,6 +10213,10 @@ export namespace Tool {
|
|
|
10117
10213
|
| 'gpt-image-1-mini'
|
|
10118
10214
|
| 'gpt-image-2'
|
|
10119
10215
|
| 'gpt-image-2-2026-04-21'
|
|
10216
|
+
| 'gpt-image-2.5-sunburst'
|
|
10217
|
+
| 'gpt-image-2.5-sunburst-2026-09-08'
|
|
10218
|
+
| 'gpt-image-2.5-flare'
|
|
10219
|
+
| 'gpt-image-2.5-flare-2026-09-08'
|
|
10120
10220
|
| 'gpt-image-1.5'
|
|
10121
10221
|
| 'chatgpt-image-latest';
|
|
10122
10222
|
|
|
@@ -10143,23 +10243,26 @@ export namespace Tool {
|
|
|
10143
10243
|
partial_images?: number;
|
|
10144
10244
|
|
|
10145
10245
|
/**
|
|
10146
|
-
* The quality of the generated image.
|
|
10147
|
-
*
|
|
10246
|
+
* The quality of the generated image. The GPT image models support `low`,
|
|
10247
|
+
* `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
|
|
10248
|
+
* including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
|
|
10249
|
+
* `auto`.
|
|
10148
10250
|
*/
|
|
10149
|
-
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
10251
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
10150
10252
|
|
|
10151
10253
|
/**
|
|
10152
|
-
* The size of the generated images. For `gpt-image-2`
|
|
10153
|
-
* `gpt-image-2-2026-
|
|
10154
|
-
*
|
|
10155
|
-
*
|
|
10156
|
-
*
|
|
10157
|
-
*
|
|
10158
|
-
*
|
|
10159
|
-
*
|
|
10160
|
-
*
|
|
10161
|
-
* `
|
|
10162
|
-
* `
|
|
10254
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
10255
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
10256
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
10257
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
10258
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
10259
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
10260
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
10261
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
10262
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
10263
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
10264
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
10265
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
10163
10266
|
*/
|
|
10164
10267
|
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
10165
10268
|
}
|
|
@@ -10714,6 +10817,9 @@ export interface ResponseCreateParamsBase {
|
|
|
10714
10817
|
|
|
10715
10818
|
/**
|
|
10716
10819
|
* Whether to store the generated model response for later retrieval via API.
|
|
10820
|
+
* Defaults to true when omitted. If set to true, response data will be stored for
|
|
10821
|
+
* at least 30 days, subject to the
|
|
10822
|
+
* [data retention exceptions](/api/docs/guides/your-data#v1responses).
|
|
10717
10823
|
*/
|
|
10718
10824
|
store?: boolean | null;
|
|
10719
10825
|
|
|
@@ -10900,6 +11006,12 @@ export namespace ResponseCreateParams {
|
|
|
10900
11006
|
* for current details.
|
|
10901
11007
|
*/
|
|
10902
11008
|
export interface PromptCacheOptions {
|
|
11009
|
+
/**
|
|
11010
|
+
* The ID of a response to compare when diagnosing prompt cache reuse. Supplying
|
|
11011
|
+
* this field requests prompt cache diagnostics when the feature is enabled.
|
|
11012
|
+
*/
|
|
11013
|
+
comparison_response_id?: string | null;
|
|
11014
|
+
|
|
10903
11015
|
/**
|
|
10904
11016
|
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
10905
11017
|
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
@@ -11201,12 +11313,13 @@ export interface ResponseCompactParams {
|
|
|
11201
11313
|
* request will be processed with the Flex Processing service tier. - To opt-in to
|
|
11202
11314
|
* [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
|
|
11203
11315
|
* `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
|
|
11204
|
-
* Completions.
|
|
11205
|
-
*
|
|
11206
|
-
* default behavior is 'auto'. When
|
|
11207
|
-
*
|
|
11208
|
-
*
|
|
11209
|
-
* the value set in the
|
|
11316
|
+
* Completions. For models with a dedicated Fast tier, either value resolves to
|
|
11317
|
+
* `service_tier=fast`; for other models, either value resolves to
|
|
11318
|
+
* `service_tier=priority`. - When not set, the default behavior is 'auto'. When
|
|
11319
|
+
* the `service_tier` parameter is set, the response body will include the
|
|
11320
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
11321
|
+
* request. This response value may be different from the value set in the
|
|
11322
|
+
* parameter.
|
|
11210
11323
|
*/
|
|
11211
11324
|
service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
|
|
11212
11325
|
}
|
|
@@ -538,8 +538,8 @@ export namespace LiveCallIncomingWebhookEvent {
|
|
|
538
538
|
*/
|
|
539
539
|
export interface Data {
|
|
540
540
|
/**
|
|
541
|
-
* The
|
|
542
|
-
*
|
|
541
|
+
* The `live_...` ID of the pending SIP session. Forward this value unchanged when
|
|
542
|
+
* accepting or rejecting the call through the Live API.
|
|
543
543
|
*/
|
|
544
544
|
session_id: string;
|
|
545
545
|
|
|
@@ -605,8 +605,10 @@ export namespace RealtimeCallIncomingWebhookEvent {
|
|
|
605
605
|
*/
|
|
606
606
|
export interface Data {
|
|
607
607
|
/**
|
|
608
|
-
* The Transceiver `rtc_...` ID of the pending SIP session. The
|
|
609
|
-
*
|
|
608
|
+
* The Transceiver `rtc_...` ID of the pending SIP session. The paired
|
|
609
|
+
* `live.call.incoming` event derives its `session_id` by replacing the `rtc_`
|
|
610
|
+
* prefix with `live_`. Use the ID returned by the event with the corresponding
|
|
611
|
+
* Realtime or Live API.
|
|
610
612
|
*/
|
|
611
613
|
call_id: string;
|
|
612
614
|
|
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.12.1'; // 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.12.1'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED