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/resources/images.d.ts
CHANGED
|
@@ -21,8 +21,7 @@ export declare class Images extends APIResource {
|
|
|
21
21
|
createVariation(body: ImageCreateVariationParams, options?: RequestOptions): APIPromise<ImagesResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Creates an edited or extended image given one or more source images and a
|
|
24
|
-
* prompt. This endpoint supports GPT Image models
|
|
25
|
-
* `gpt-image-1-mini`, and `chatgpt-image-latest`) and `dall-e-2`.
|
|
24
|
+
* prompt. This endpoint supports GPT Image models and `dall-e-2`.
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
27
|
* ```ts
|
|
@@ -94,11 +93,11 @@ export interface ImageEditCompletedEvent {
|
|
|
94
93
|
/**
|
|
95
94
|
* The quality setting for the edited image.
|
|
96
95
|
*/
|
|
97
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
96
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
98
97
|
/**
|
|
99
|
-
* The
|
|
98
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
100
99
|
*/
|
|
101
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
100
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
102
101
|
/**
|
|
103
102
|
* The type of the event. Always `image_edit.completed`.
|
|
104
103
|
*/
|
|
@@ -175,11 +174,11 @@ export interface ImageEditPartialImageEvent {
|
|
|
175
174
|
/**
|
|
176
175
|
* The quality setting for the requested edited image.
|
|
177
176
|
*/
|
|
178
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
177
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
179
178
|
/**
|
|
180
|
-
* The
|
|
179
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
181
180
|
*/
|
|
182
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
181
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
183
182
|
/**
|
|
184
183
|
* The type of the event. Always `image_edit.partial_image`.
|
|
185
184
|
*/
|
|
@@ -212,11 +211,11 @@ export interface ImageGenCompletedEvent {
|
|
|
212
211
|
/**
|
|
213
212
|
* The quality setting for the generated image.
|
|
214
213
|
*/
|
|
215
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
214
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
216
215
|
/**
|
|
217
|
-
* The
|
|
216
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
218
217
|
*/
|
|
219
|
-
size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
218
|
+
size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
220
219
|
/**
|
|
221
220
|
* The type of the event. Always `image_generation.completed`.
|
|
222
221
|
*/
|
|
@@ -293,11 +292,11 @@ export interface ImageGenPartialImageEvent {
|
|
|
293
292
|
/**
|
|
294
293
|
* The quality setting for the requested image.
|
|
295
294
|
*/
|
|
296
|
-
quality: 'low' | 'medium' | 'high' | 'auto';
|
|
295
|
+
quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
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
|
* The type of the event. Always `image_generation.partial_image`.
|
|
303
302
|
*/
|
|
@@ -307,7 +306,7 @@ export interface ImageGenPartialImageEvent {
|
|
|
307
306
|
* Emitted when a partial image is available during image generation streaming.
|
|
308
307
|
*/
|
|
309
308
|
export type ImageGenStreamEvent = ImageGenPartialImageEvent | ImageGenCompletedEvent;
|
|
310
|
-
export type ImageModel = 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-1.5' | 'chatgpt-image-latest' | 'dall-e-2' | 'dall-e-3';
|
|
309
|
+
export type ImageModel = 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-1.5' | 'chatgpt-image-latest' | 'dall-e-2' | 'dall-e-3';
|
|
311
310
|
/**
|
|
312
311
|
* The response from the image generation endpoint.
|
|
313
312
|
*/
|
|
@@ -330,14 +329,14 @@ export interface ImagesResponse {
|
|
|
330
329
|
*/
|
|
331
330
|
output_format?: 'png' | 'webp' | 'jpeg';
|
|
332
331
|
/**
|
|
333
|
-
* The quality of the image generated.
|
|
332
|
+
* The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or
|
|
333
|
+
* `max`.
|
|
334
334
|
*/
|
|
335
|
-
quality?: 'low' | 'medium' | 'high';
|
|
335
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
336
336
|
/**
|
|
337
|
-
* The
|
|
338
|
-
* `1536x1024`.
|
|
337
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
339
338
|
*/
|
|
340
|
-
size?: '1024x1024' | '1024x1536' | '1536x1024';
|
|
339
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024';
|
|
341
340
|
/**
|
|
342
341
|
* For `gpt-image-1` only, the token usage information for the image generation.
|
|
343
342
|
*/
|
|
@@ -437,9 +436,11 @@ export interface ImageEditParamsBase {
|
|
|
437
436
|
* The image(s) to edit. Must be a supported image file or an array of images.
|
|
438
437
|
*
|
|
439
438
|
* For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
|
|
440
|
-
* `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
441
|
-
*
|
|
442
|
-
*
|
|
439
|
+
* `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
440
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
441
|
+
* `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
|
|
442
|
+
* be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
|
|
443
|
+
* images.
|
|
443
444
|
*
|
|
444
445
|
* For `dall-e-2`, you can only provide one image, and it should be a square `png`
|
|
445
446
|
* file less than 4MB.
|
|
@@ -455,9 +456,11 @@ export interface ImageEditParamsBase {
|
|
|
455
456
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
456
457
|
* the model will automatically determine the best background for the image.
|
|
457
458
|
*
|
|
458
|
-
*
|
|
459
|
-
* `
|
|
460
|
-
*
|
|
459
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
460
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
461
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
462
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
463
|
+
* set the output format to `png` or `webp`.
|
|
461
464
|
*/
|
|
462
465
|
background?: 'transparent' | 'opaque' | 'auto' | null;
|
|
463
466
|
/**
|
|
@@ -477,7 +480,9 @@ export interface ImageEditParamsBase {
|
|
|
477
480
|
/**
|
|
478
481
|
* The model to use for image generation. One of `dall-e-2` or a GPT image model
|
|
479
482
|
* (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
|
|
480
|
-
* `gpt-image-2-2026-04-21`,
|
|
483
|
+
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
484
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
485
|
+
* `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`). Defaults to
|
|
481
486
|
* `gpt-image-1.5`.
|
|
482
487
|
*/
|
|
483
488
|
model?: (string & {}) | ImageModel | null;
|
|
@@ -507,10 +512,12 @@ export interface ImageEditParamsBase {
|
|
|
507
512
|
*/
|
|
508
513
|
partial_images?: number | null;
|
|
509
514
|
/**
|
|
510
|
-
* The quality of the image that will be generated for GPT image models.
|
|
511
|
-
*
|
|
515
|
+
* The quality of the image that will be generated for GPT image models. The GPT
|
|
516
|
+
* image models support `low`, `medium`, and `high`. `gpt-image-2.5-sunburst` and
|
|
517
|
+
* `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support
|
|
518
|
+
* `xhigh` and `max`. Defaults to `auto`.
|
|
512
519
|
*/
|
|
513
|
-
quality?: 'standard' | 'low' | 'medium' | 'high' | 'auto' | null;
|
|
520
|
+
quality?: 'standard' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
514
521
|
/**
|
|
515
522
|
* The format in which the generated images are returned. Must be one of `url` or
|
|
516
523
|
* `b64_json`. URLs are only valid for 60 minutes after the image has been
|
|
@@ -519,17 +526,18 @@ export interface ImageEditParamsBase {
|
|
|
519
526
|
*/
|
|
520
527
|
response_format?: 'url' | 'b64_json' | null;
|
|
521
528
|
/**
|
|
522
|
-
* The size of the generated images. For `gpt-image-2`
|
|
523
|
-
* `gpt-image-2-2026-
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
* `
|
|
532
|
-
* `
|
|
529
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
530
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
531
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
532
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
533
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
534
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
535
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
536
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
537
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
538
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
539
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
540
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
533
541
|
*/
|
|
534
542
|
size?: (string & {}) | '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null;
|
|
535
543
|
/**
|
|
@@ -578,16 +586,20 @@ export interface ImageGenerateParamsBase {
|
|
|
578
586
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
579
587
|
* the model will automatically determine the best background for the image.
|
|
580
588
|
*
|
|
581
|
-
*
|
|
582
|
-
* `
|
|
583
|
-
*
|
|
589
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
590
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
591
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
592
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
593
|
+
* set the output format to `png` or `webp`.
|
|
584
594
|
*/
|
|
585
595
|
background?: 'transparent' | 'opaque' | 'auto' | null;
|
|
586
596
|
/**
|
|
587
597
|
* The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
|
|
588
598
|
* image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
|
|
589
|
-
*
|
|
590
|
-
*
|
|
599
|
+
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
600
|
+
* `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
|
|
601
|
+
* `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
|
|
602
|
+
* specific to the GPT image models is used.
|
|
591
603
|
*/
|
|
592
604
|
model?: (string & {}) | ImageModel | null;
|
|
593
605
|
/**
|
|
@@ -627,10 +639,12 @@ export interface ImageGenerateParamsBase {
|
|
|
627
639
|
* - `auto` (default value) will automatically select the best quality for the
|
|
628
640
|
* given model.
|
|
629
641
|
* - `high`, `medium` and `low` are supported for the GPT image models.
|
|
642
|
+
* - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
|
|
643
|
+
* `2026-09-08` snapshots, also support `xhigh` and `max`.
|
|
630
644
|
* - `hd` and `standard` are supported for `dall-e-3`.
|
|
631
645
|
* - `standard` is the only option for `dall-e-2`.
|
|
632
646
|
*/
|
|
633
|
-
quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null;
|
|
647
|
+
quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
634
648
|
/**
|
|
635
649
|
* The format in which generated images with `dall-e-2` and `dall-e-3` are
|
|
636
650
|
* returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes
|
|
@@ -639,17 +653,18 @@ export interface ImageGenerateParamsBase {
|
|
|
639
653
|
*/
|
|
640
654
|
response_format?: 'url' | 'b64_json' | null;
|
|
641
655
|
/**
|
|
642
|
-
* The size of the generated images. For `gpt-image-2`
|
|
643
|
-
* `gpt-image-2-2026-
|
|
644
|
-
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* `
|
|
652
|
-
* `
|
|
656
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
657
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
658
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
659
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
660
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
661
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
662
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
663
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
664
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
665
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
666
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
667
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
653
668
|
*/
|
|
654
669
|
size?: (string & {}) | 'auto' | '1024x1024' | '1536x1024' | '1024x1536' | '256x256' | '512x512' | '1792x1024' | '1024x1792' | null;
|
|
655
670
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,6BAA0B;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;AAClD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAOvG
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,6BAA0B;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;AAClD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAOvG;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAA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CACH"}
|
package/resources/images.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,kDAA+C;AAM/C,oDAAkE;AAElE;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CAAC;IACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,kDAA+C;AAM/C,oDAAkE;AAElE;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CAAC;IACJ,CAAC;IAoBD,IAAI,CACF,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,IAAA,qCAA2B,EACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE;YAC5F,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,EACD,IAAI,CAAC,OAAO,CACb,CACuE,CAAC;IAC7E,CAAC;IAsBD,QAAQ,CACN,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAyE,CAAC;IAC7E,CAAC;CACF;AAtFD,wBAsFC"}
|
package/resources/images.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAM/C,OAAO,EAAE,2BAA2B,EAAE,gCAA4B;AAElE;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CAAC;IACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAM/C,OAAO,EAAE,2BAA2B,EAAE,gCAA4B;AAElE;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,IAAgC,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,oBAAoB,EACpB,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CAAC;IACJ,CAAC;IAoBD,IAAI,CACF,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,2BAA2B,CACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE;YAC5F,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,EACD,IAAI,CAAC,OAAO,CACb,CACuE,CAAC;IAC7E,CAAC;IAsBD,QAAQ,CACN,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAyE,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -912,6 +912,10 @@ export interface Response {
|
|
|
912
912
|
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
913
913
|
*/
|
|
914
914
|
prompt?: ResponsePrompt | null;
|
|
915
|
+
/**
|
|
916
|
+
* Prompt cache diagnostics requested for this response.
|
|
917
|
+
*/
|
|
918
|
+
prompt_cache_diagnostics?: Response.CacheMiss | Response.CacheHit | Response.ComparisonResponseNotFound | Response.Unavailable;
|
|
915
919
|
/**
|
|
916
920
|
* Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
917
921
|
* hit rates. Replaces the `user` field.
|
|
@@ -1179,6 +1183,31 @@ export declare namespace Response {
|
|
|
1179
1183
|
type: 'error';
|
|
1180
1184
|
}
|
|
1181
1185
|
}
|
|
1186
|
+
interface CacheMiss {
|
|
1187
|
+
/**
|
|
1188
|
+
* The estimated number of input tokens affected after the first detected
|
|
1189
|
+
* divergence.
|
|
1190
|
+
*/
|
|
1191
|
+
cache_missed_tokens: number;
|
|
1192
|
+
/**
|
|
1193
|
+
* The reason prompt cache reuse did not occur.
|
|
1194
|
+
*/
|
|
1195
|
+
reason: 'model_changed' | 'prompt_cache_key_changed' | 'tools_changed' | 'text_format_changed' | 'reasoning_effort_changed' | 'verbosity_changed' | 'context_compacted' | 'input_changed' | 'service_tier_changed';
|
|
1196
|
+
type: 'cache_miss';
|
|
1197
|
+
/**
|
|
1198
|
+
* The raw token count of the reusable prefix in the compared response.
|
|
1199
|
+
*/
|
|
1200
|
+
comparison_reusable_tokens?: number;
|
|
1201
|
+
}
|
|
1202
|
+
interface CacheHit {
|
|
1203
|
+
type: 'cache_hit';
|
|
1204
|
+
}
|
|
1205
|
+
interface ComparisonResponseNotFound {
|
|
1206
|
+
type: 'comparison_response_not_found';
|
|
1207
|
+
}
|
|
1208
|
+
interface Unavailable {
|
|
1209
|
+
type: 'unavailable';
|
|
1210
|
+
}
|
|
1182
1211
|
/**
|
|
1183
1212
|
* The prompt-caching options that were applied to the response. Supported for
|
|
1184
1213
|
* `gpt-5.6` and later models.
|
|
@@ -1192,6 +1221,10 @@ export declare namespace Response {
|
|
|
1192
1221
|
* The minimum lifetime applied to each cache breakpoint.
|
|
1193
1222
|
*/
|
|
1194
1223
|
ttl: '30m';
|
|
1224
|
+
/**
|
|
1225
|
+
* The response ID supplied as the prompt cache diagnostics comparison.
|
|
1226
|
+
*/
|
|
1227
|
+
comparison_response_id?: string | null;
|
|
1195
1228
|
}
|
|
1196
1229
|
}
|
|
1197
1230
|
/**
|
|
@@ -2618,10 +2651,6 @@ export interface ResponseFunctionCallArgumentsDoneEvent {
|
|
|
2618
2651
|
* The ID of the item.
|
|
2619
2652
|
*/
|
|
2620
2653
|
item_id: string;
|
|
2621
|
-
/**
|
|
2622
|
-
* The name of the function that was called.
|
|
2623
|
-
*/
|
|
2624
|
-
name: string;
|
|
2625
2654
|
/**
|
|
2626
2655
|
* The index of the output item.
|
|
2627
2656
|
*/
|
|
@@ -2996,7 +3025,7 @@ export interface ResponseFunctionWebSearch {
|
|
|
2996
3025
|
/**
|
|
2997
3026
|
* The status of the web search tool call.
|
|
2998
3027
|
*/
|
|
2999
|
-
status: 'in_progress' | 'searching' | 'completed' | 'failed';
|
|
3028
|
+
status: 'in_progress' | 'searching' | 'completed' | 'failed' | 'incomplete';
|
|
3000
3029
|
/**
|
|
3001
3030
|
* The type of the web search tool call. Always `web_search_call`.
|
|
3002
3031
|
*/
|
|
@@ -3671,6 +3700,15 @@ export declare namespace ResponseInputItem {
|
|
|
3671
3700
|
* The type of the image generation call. Always `image_generation_call`.
|
|
3672
3701
|
*/
|
|
3673
3702
|
type: 'image_generation_call';
|
|
3703
|
+
/**
|
|
3704
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
3705
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
3706
|
+
*/
|
|
3707
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
3708
|
+
/**
|
|
3709
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
3710
|
+
*/
|
|
3711
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
3674
3712
|
}
|
|
3675
3713
|
/**
|
|
3676
3714
|
* A tool call to run a command on the local shell.
|
|
@@ -4411,6 +4449,15 @@ export declare namespace ResponseItem {
|
|
|
4411
4449
|
* The type of the image generation call. Always `image_generation_call`.
|
|
4412
4450
|
*/
|
|
4413
4451
|
type: 'image_generation_call';
|
|
4452
|
+
/**
|
|
4453
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
4454
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
4455
|
+
*/
|
|
4456
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
4457
|
+
/**
|
|
4458
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
4459
|
+
*/
|
|
4460
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
4414
4461
|
}
|
|
4415
4462
|
/**
|
|
4416
4463
|
* A tool call to run a command on the local shell.
|
|
@@ -4926,6 +4973,15 @@ export declare namespace ResponseOutputItem {
|
|
|
4926
4973
|
* The type of the image generation call. Always `image_generation_call`.
|
|
4927
4974
|
*/
|
|
4928
4975
|
type: 'image_generation_call';
|
|
4976
|
+
/**
|
|
4977
|
+
* The quality of the image generated by the image generation tool call. One of
|
|
4978
|
+
* `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
|
|
4979
|
+
*/
|
|
4980
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
|
|
4981
|
+
/**
|
|
4982
|
+
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
4983
|
+
*/
|
|
4984
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
|
|
4929
4985
|
}
|
|
4930
4986
|
/**
|
|
4931
4987
|
* A tool call to run a command on the local shell.
|
|
@@ -7109,6 +7165,9 @@ export declare namespace ResponsesClientEvent {
|
|
|
7109
7165
|
service_tier?: ResponsesAPI.ServiceTier | null;
|
|
7110
7166
|
/**
|
|
7111
7167
|
* Whether to store the generated model response for later retrieval via API.
|
|
7168
|
+
* Defaults to true when omitted. If set to true, response data will be stored for
|
|
7169
|
+
* at least 30 days, subject to the
|
|
7170
|
+
* [data retention exceptions](/api/docs/guides/your-data#v1responses).
|
|
7112
7171
|
*/
|
|
7113
7172
|
store?: boolean | null;
|
|
7114
7173
|
/**
|
|
@@ -7275,6 +7334,11 @@ export declare namespace ResponsesClientEvent {
|
|
|
7275
7334
|
* for current details.
|
|
7276
7335
|
*/
|
|
7277
7336
|
interface PromptCacheOptions {
|
|
7337
|
+
/**
|
|
7338
|
+
* The ID of a response to compare when diagnosing prompt cache reuse. Supplying
|
|
7339
|
+
* this field requests prompt cache diagnostics when the feature is enabled.
|
|
7340
|
+
*/
|
|
7341
|
+
comparison_response_id?: string | null;
|
|
7278
7342
|
/**
|
|
7279
7343
|
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
7280
7344
|
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
@@ -8244,9 +8308,11 @@ export declare namespace Tool {
|
|
|
8244
8308
|
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
8245
8309
|
* the model will automatically determine the best background for the image.
|
|
8246
8310
|
*
|
|
8247
|
-
*
|
|
8248
|
-
* `
|
|
8249
|
-
*
|
|
8311
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
8312
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
8313
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
8314
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
8315
|
+
* set the output format to `png` or `webp`.
|
|
8250
8316
|
*/
|
|
8251
8317
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
8252
8318
|
/**
|
|
@@ -8263,10 +8329,12 @@ export declare namespace Tool {
|
|
|
8263
8329
|
input_image_mask?: ImageGeneration.InputImageMask;
|
|
8264
8330
|
/**
|
|
8265
8331
|
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
8266
|
-
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
8332
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
8333
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
8334
|
+
* `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
|
|
8267
8335
|
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
8268
8336
|
*/
|
|
8269
|
-
model?: (string & {}) | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-1.5' | 'chatgpt-image-latest';
|
|
8337
|
+
model?: (string & {}) | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-1.5' | 'chatgpt-image-latest';
|
|
8270
8338
|
/**
|
|
8271
8339
|
* Moderation level for the generated image. Default: `auto`.
|
|
8272
8340
|
*/
|
|
@@ -8286,22 +8354,25 @@ export declare namespace Tool {
|
|
|
8286
8354
|
*/
|
|
8287
8355
|
partial_images?: number;
|
|
8288
8356
|
/**
|
|
8289
|
-
* The quality of the generated image.
|
|
8290
|
-
*
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
*
|
|
8297
|
-
*
|
|
8298
|
-
* `
|
|
8299
|
-
*
|
|
8300
|
-
*
|
|
8301
|
-
*
|
|
8302
|
-
*
|
|
8303
|
-
*
|
|
8304
|
-
* `
|
|
8357
|
+
* The quality of the generated image. The GPT image models support `low`,
|
|
8358
|
+
* `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
|
|
8359
|
+
* including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
|
|
8360
|
+
* `auto`.
|
|
8361
|
+
*/
|
|
8362
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
8363
|
+
/**
|
|
8364
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
8365
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
8366
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
8367
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
8368
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
8369
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
8370
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
8371
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
8372
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
8373
|
+
* `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
|
|
8374
|
+
* one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
|
|
8375
|
+
* `1024x1024`, `1792x1024`, or `1024x1792`.
|
|
8305
8376
|
*/
|
|
8306
8377
|
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
8307
8378
|
}
|
|
@@ -8787,6 +8858,9 @@ export interface ResponseCreateParamsBase {
|
|
|
8787
8858
|
service_tier?: ServiceTier | null;
|
|
8788
8859
|
/**
|
|
8789
8860
|
* Whether to store the generated model response for later retrieval via API.
|
|
8861
|
+
* Defaults to true when omitted. If set to true, response data will be stored for
|
|
8862
|
+
* at least 30 days, subject to the
|
|
8863
|
+
* [data retention exceptions](/api/docs/guides/your-data#v1responses).
|
|
8790
8864
|
*/
|
|
8791
8865
|
store?: boolean | null;
|
|
8792
8866
|
/**
|
|
@@ -8945,6 +9019,11 @@ export declare namespace ResponseCreateParams {
|
|
|
8945
9019
|
* for current details.
|
|
8946
9020
|
*/
|
|
8947
9021
|
interface PromptCacheOptions {
|
|
9022
|
+
/**
|
|
9023
|
+
* The ID of a response to compare when diagnosing prompt cache reuse. Supplying
|
|
9024
|
+
* this field requests prompt cache diagnostics when the feature is enabled.
|
|
9025
|
+
*/
|
|
9026
|
+
comparison_response_id?: string | null;
|
|
8948
9027
|
/**
|
|
8949
9028
|
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
8950
9029
|
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
@@ -9119,12 +9198,13 @@ export interface ResponseCompactParams {
|
|
|
9119
9198
|
* request will be processed with the Flex Processing service tier. - To opt-in to
|
|
9120
9199
|
* [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
|
|
9121
9200
|
* `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
|
|
9122
|
-
* Completions.
|
|
9123
|
-
*
|
|
9124
|
-
* default behavior is 'auto'. When
|
|
9125
|
-
*
|
|
9126
|
-
*
|
|
9127
|
-
* the value set in the
|
|
9201
|
+
* Completions. For models with a dedicated Fast tier, either value resolves to
|
|
9202
|
+
* `service_tier=fast`; for other models, either value resolves to
|
|
9203
|
+
* `service_tier=priority`. - When not set, the default behavior is 'auto'. When
|
|
9204
|
+
* the `service_tier` parameter is set, the response body will include the
|
|
9205
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
9206
|
+
* request. This response value may be different from the value set in the
|
|
9207
|
+
* parameter.
|
|
9128
9208
|
*/
|
|
9129
9209
|
service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
|
|
9130
9210
|
}
|