openai 7.10.0 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +203 -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/audit-logs.d.mts +1 -1
- package/resources/admin/organization/audit-logs.d.ts +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +5 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +5 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +2 -2
- package/resources/admin/organization/projects/projects.d.ts +2 -2
- 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/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/audio/speech.d.mts +3 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +3 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/transcriptions.d.mts +10 -10
- package/resources/audio/transcriptions.d.ts +10 -10
- package/resources/audio/translations.d.mts +1 -1
- package/resources/audio/translations.d.ts +1 -1
- package/resources/batches.d.mts +6 -5
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +6 -5
- package/resources/batches.d.ts.map +1 -1
- package/resources/beta/assistants.d.mts +143 -147
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +143 -147
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +11 -11
- package/resources/beta/responses/input-tokens.d.ts +11 -11
- package/resources/beta/responses/responses.d.mts +284 -194
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +284 -194
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +3 -3
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +3 -3
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +29 -23
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +29 -23
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +39 -35
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +39 -35
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts +14 -15
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +14 -15
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/threads.d.mts +53 -50
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts +53 -50
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +89 -81
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +89 -81
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +15 -14
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +15 -14
- package/resources/completions.d.ts.map +1 -1
- package/resources/content-provenance-checks.d.mts +1 -1
- package/resources/content-provenance-checks.d.ts +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/conversations/items.d.mts +12 -3
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +12 -3
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/embeddings.d.mts +6 -6
- package/resources/embeddings.d.ts +6 -6
- package/resources/evals/evals.d.mts +1 -1
- package/resources/evals/evals.d.ts +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/runs/runs.d.mts +62 -57
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +62 -57
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +5 -5
- package/resources/files.d.ts +5 -5
- package/resources/files.js +5 -5
- package/resources/files.mjs +5 -5
- package/resources/fine-tuning/alpha/graders.d.mts +5 -4
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts +5 -4
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +8 -4
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +2 -2
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +2 -2
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +83 -68
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +83 -68
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js.map +1 -1
- package/resources/images.mjs.map +1 -1
- package/resources/moderations.d.mts +5 -4
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts +5 -4
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +2 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +2 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +1 -1
- package/resources/realtime/calls.d.ts +1 -1
- package/resources/realtime/client-secrets.d.mts +4 -4
- package/resources/realtime/client-secrets.d.ts +4 -4
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/realtime.d.mts +16 -16
- package/resources/realtime/realtime.d.ts +16 -16
- package/resources/responses/input-tokens.d.mts +9 -9
- package/resources/responses/input-tokens.d.ts +9 -9
- package/resources/responses/responses.d.mts +278 -187
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +278 -187
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +3 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +3 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +12 -12
- package/resources/shared.d.ts +12 -12
- package/resources/uploads/parts.d.mts +5 -4
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts +5 -4
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +5 -4
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +5 -4
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts +11 -11
- package/resources/uploads/uploads.d.ts +11 -11
- package/resources/uploads/uploads.js +9 -9
- package/resources/uploads/uploads.mjs +9 -9
- package/resources/vector-stores/file-batches.d.mts +11 -11
- package/resources/vector-stores/file-batches.d.ts +11 -11
- package/resources/vector-stores/files.d.mts +8 -8
- package/resources/vector-stores/files.d.ts +8 -8
- package/resources/vector-stores/files.js +3 -3
- package/resources/vector-stores/files.mjs +3 -3
- package/resources/vector-stores/vector-stores.d.mts +3 -3
- package/resources/vector-stores/vector-stores.d.ts +3 -3
- package/resources/webhooks/webhooks.d.mts +12 -6
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +12 -6
- 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/audit-logs.ts +1 -1
- package/src/resources/admin/organization/projects/api-keys.ts +6 -0
- package/src/resources/admin/organization/projects/projects.ts +2 -2
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +11 -0
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
- package/src/resources/audio/speech.ts +3 -2
- package/src/resources/audio/transcriptions.ts +10 -10
- package/src/resources/audio/translations.ts +1 -1
- package/src/resources/batches.ts +6 -5
- package/src/resources/beta/assistants.ts +143 -147
- package/src/resources/beta/responses/input-tokens.ts +11 -11
- package/src/resources/beta/responses/responses.ts +315 -192
- package/src/resources/beta/threads/messages.ts +29 -23
- package/src/resources/beta/threads/runs/runs.ts +39 -35
- package/src/resources/beta/threads/runs/steps.ts +14 -15
- package/src/resources/beta/threads/threads.ts +53 -50
- package/src/resources/chat/completions/completions.ts +89 -81
- package/src/resources/completions.ts +15 -14
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/items.ts +14 -3
- package/src/resources/embeddings.ts +6 -6
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/runs/runs.ts +62 -57
- package/src/resources/files.ts +5 -5
- package/src/resources/fine-tuning/alpha/graders.ts +5 -4
- package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
- package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +86 -67
- package/src/resources/moderations.ts +5 -4
- package/src/resources/realtime/calls.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +4 -4
- package/src/resources/realtime/realtime.ts +16 -16
- package/src/resources/responses/input-tokens.ts +9 -9
- package/src/resources/responses/responses.ts +309 -185
- package/src/resources/shared.ts +12 -12
- package/src/resources/uploads/parts.ts +5 -4
- package/src/resources/uploads/uploads.ts +11 -11
- package/src/resources/vector-stores/file-batches.ts +11 -11
- package/src/resources/vector-stores/files.ts +8 -8
- package/src/resources/vector-stores/vector-stores.ts +3 -3
- package/src/resources/webhooks/webhooks.ts +12 -6
- 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/shared.d.mts
CHANGED
|
@@ -122,8 +122,8 @@ export interface FunctionDefinition {
|
|
|
122
122
|
description?: string;
|
|
123
123
|
/**
|
|
124
124
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
125
|
-
* [guide](https://
|
|
126
|
-
* and the
|
|
125
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
126
|
+
* examples, and the
|
|
127
127
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
128
128
|
* documentation about the format.
|
|
129
129
|
*
|
|
@@ -135,14 +135,14 @@ export interface FunctionDefinition {
|
|
|
135
135
|
* set to true, the model will follow the exact schema defined in the `parameters`
|
|
136
136
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn
|
|
137
137
|
* more about Structured Outputs in the
|
|
138
|
-
* [function calling guide](https://
|
|
138
|
+
* [function calling guide](https://developers.openai.com/api/docs/guides/function-calling).
|
|
139
139
|
*/
|
|
140
140
|
strict?: boolean | null;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
144
|
-
* [guide](https://
|
|
145
|
-
* and the
|
|
144
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
145
|
+
* examples, and the
|
|
146
146
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
147
147
|
* documentation about the format.
|
|
148
148
|
*
|
|
@@ -165,7 +165,7 @@ export type Metadata = {
|
|
|
165
165
|
export type OAuthErrorCode = 'invalid_grant' | 'invalid_subject_token' | (string & {});
|
|
166
166
|
/**
|
|
167
167
|
* Configuration options for
|
|
168
|
-
* [reasoning models](https://
|
|
168
|
+
* [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
169
169
|
*/
|
|
170
170
|
export interface Reasoning {
|
|
171
171
|
/**
|
|
@@ -182,7 +182,7 @@ export interface Reasoning {
|
|
|
182
182
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
183
183
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
184
184
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
185
|
-
* [reasoning guide](https://
|
|
185
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
186
186
|
* model-specific support.
|
|
187
187
|
*/
|
|
188
188
|
effort?: ReasoningEffort | null;
|
|
@@ -215,7 +215,7 @@ export interface Reasoning {
|
|
|
215
215
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
216
216
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
217
217
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
218
|
-
* [reasoning guide](https://
|
|
218
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
219
219
|
* model-specific support.
|
|
220
220
|
*/
|
|
221
221
|
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
@@ -233,7 +233,7 @@ export interface ResponseFormatJSONObject {
|
|
|
233
233
|
/**
|
|
234
234
|
* JSON Schema response format. Used to generate structured JSON responses. Learn
|
|
235
235
|
* more about
|
|
236
|
-
* [Structured Outputs](https://
|
|
236
|
+
* [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
237
237
|
*/
|
|
238
238
|
export interface ResponseFormatJSONSchema {
|
|
239
239
|
/**
|
|
@@ -272,7 +272,7 @@ export declare namespace ResponseFormatJSONSchema {
|
|
|
272
272
|
* true, the model will always follow the exact schema defined in the `schema`
|
|
273
273
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. To
|
|
274
274
|
* learn more, read the
|
|
275
|
-
* [Structured Outputs guide](https://
|
|
275
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
276
276
|
*/
|
|
277
277
|
strict?: boolean | null;
|
|
278
278
|
}
|
|
@@ -288,7 +288,7 @@ export interface ResponseFormatText {
|
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* A custom grammar for the model to follow when generating text. Learn more in the
|
|
291
|
-
* [custom grammars guide](https://
|
|
291
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars).
|
|
292
292
|
*/
|
|
293
293
|
export interface ResponseFormatTextGrammar {
|
|
294
294
|
/**
|
|
@@ -302,7 +302,7 @@ export interface ResponseFormatTextGrammar {
|
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Configure the model to generate valid Python code. See the
|
|
305
|
-
* [custom grammars guide](https://
|
|
305
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars)
|
|
306
306
|
* for more details.
|
|
307
307
|
*/
|
|
308
308
|
export interface ResponseFormatTextPython {
|
package/resources/shared.d.ts
CHANGED
|
@@ -122,8 +122,8 @@ export interface FunctionDefinition {
|
|
|
122
122
|
description?: string;
|
|
123
123
|
/**
|
|
124
124
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
125
|
-
* [guide](https://
|
|
126
|
-
* and the
|
|
125
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
126
|
+
* examples, and the
|
|
127
127
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
128
128
|
* documentation about the format.
|
|
129
129
|
*
|
|
@@ -135,14 +135,14 @@ export interface FunctionDefinition {
|
|
|
135
135
|
* set to true, the model will follow the exact schema defined in the `parameters`
|
|
136
136
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn
|
|
137
137
|
* more about Structured Outputs in the
|
|
138
|
-
* [function calling guide](https://
|
|
138
|
+
* [function calling guide](https://developers.openai.com/api/docs/guides/function-calling).
|
|
139
139
|
*/
|
|
140
140
|
strict?: boolean | null;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
144
|
-
* [guide](https://
|
|
145
|
-
* and the
|
|
144
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
145
|
+
* examples, and the
|
|
146
146
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
147
147
|
* documentation about the format.
|
|
148
148
|
*
|
|
@@ -165,7 +165,7 @@ export type Metadata = {
|
|
|
165
165
|
export type OAuthErrorCode = 'invalid_grant' | 'invalid_subject_token' | (string & {});
|
|
166
166
|
/**
|
|
167
167
|
* Configuration options for
|
|
168
|
-
* [reasoning models](https://
|
|
168
|
+
* [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
169
169
|
*/
|
|
170
170
|
export interface Reasoning {
|
|
171
171
|
/**
|
|
@@ -182,7 +182,7 @@ export interface Reasoning {
|
|
|
182
182
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
183
183
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
184
184
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
185
|
-
* [reasoning guide](https://
|
|
185
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
186
186
|
* model-specific support.
|
|
187
187
|
*/
|
|
188
188
|
effort?: ReasoningEffort | null;
|
|
@@ -215,7 +215,7 @@ export interface Reasoning {
|
|
|
215
215
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
216
216
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
217
217
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
218
|
-
* [reasoning guide](https://
|
|
218
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
219
219
|
* model-specific support.
|
|
220
220
|
*/
|
|
221
221
|
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
@@ -233,7 +233,7 @@ export interface ResponseFormatJSONObject {
|
|
|
233
233
|
/**
|
|
234
234
|
* JSON Schema response format. Used to generate structured JSON responses. Learn
|
|
235
235
|
* more about
|
|
236
|
-
* [Structured Outputs](https://
|
|
236
|
+
* [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
237
237
|
*/
|
|
238
238
|
export interface ResponseFormatJSONSchema {
|
|
239
239
|
/**
|
|
@@ -272,7 +272,7 @@ export declare namespace ResponseFormatJSONSchema {
|
|
|
272
272
|
* true, the model will always follow the exact schema defined in the `schema`
|
|
273
273
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. To
|
|
274
274
|
* learn more, read the
|
|
275
|
-
* [Structured Outputs guide](https://
|
|
275
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
276
276
|
*/
|
|
277
277
|
strict?: boolean | null;
|
|
278
278
|
}
|
|
@@ -288,7 +288,7 @@ export interface ResponseFormatText {
|
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* A custom grammar for the model to follow when generating text. Learn more in the
|
|
291
|
-
* [custom grammars guide](https://
|
|
291
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars).
|
|
292
292
|
*/
|
|
293
293
|
export interface ResponseFormatTextGrammar {
|
|
294
294
|
/**
|
|
@@ -302,7 +302,7 @@ export interface ResponseFormatTextGrammar {
|
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Configure the model to generate valid Python code. See the
|
|
305
|
-
* [custom grammars guide](https://
|
|
305
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars)
|
|
306
306
|
* for more details.
|
|
307
307
|
*/
|
|
308
308
|
export interface ResponseFormatTextPython {
|
|
@@ -8,16 +8,17 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
8
8
|
export declare class Parts extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Adds a
|
|
11
|
-
* [Part](https://
|
|
12
|
-
* [Upload](https://
|
|
13
|
-
* A Part represents a chunk of bytes from the file you are trying to
|
|
11
|
+
* [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
12
|
+
* to an [Upload](https://developers.openai.com/api/reference/resources/uploads)
|
|
13
|
+
* object. A Part represents a chunk of bytes from the file you are trying to
|
|
14
|
+
* upload.
|
|
14
15
|
*
|
|
15
16
|
* Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
|
|
16
17
|
* maximum of 8 GB.
|
|
17
18
|
*
|
|
18
19
|
* It is possible to add multiple Parts in parallel. You can decide the intended
|
|
19
20
|
* order of the Parts when you
|
|
20
|
-
* [complete the Upload](https://
|
|
21
|
+
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
21
22
|
*/
|
|
22
23
|
create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise<UploadPart>;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.mts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAIhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"parts.d.mts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAIhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAMnG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrF"}
|
|
@@ -8,16 +8,17 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
8
8
|
export declare class Parts extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Adds a
|
|
11
|
-
* [Part](https://
|
|
12
|
-
* [Upload](https://
|
|
13
|
-
* A Part represents a chunk of bytes from the file you are trying to
|
|
11
|
+
* [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
12
|
+
* to an [Upload](https://developers.openai.com/api/reference/resources/uploads)
|
|
13
|
+
* object. A Part represents a chunk of bytes from the file you are trying to
|
|
14
|
+
* upload.
|
|
14
15
|
*
|
|
15
16
|
* Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
|
|
16
17
|
* maximum of 8 GB.
|
|
17
18
|
*
|
|
18
19
|
* It is possible to add multiple Parts in parallel. You can decide the intended
|
|
19
20
|
* order of the Parts when you
|
|
20
|
-
* [complete the Upload](https://
|
|
21
|
+
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
21
22
|
*/
|
|
22
23
|
create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise<UploadPart>;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAIhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAIhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;CAMnG;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrF"}
|
|
@@ -11,16 +11,17 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
11
11
|
class Parts extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Adds a
|
|
14
|
-
* [Part](https://
|
|
15
|
-
* [Upload](https://
|
|
16
|
-
* A Part represents a chunk of bytes from the file you are trying to
|
|
14
|
+
* [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
15
|
+
* to an [Upload](https://developers.openai.com/api/reference/resources/uploads)
|
|
16
|
+
* object. A Part represents a chunk of bytes from the file you are trying to
|
|
17
|
+
* upload.
|
|
17
18
|
*
|
|
18
19
|
* Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
|
|
19
20
|
* maximum of 8 GB.
|
|
20
21
|
*
|
|
21
22
|
* It is possible to add multiple Parts in parallel. You can decide the intended
|
|
22
23
|
* order of the Parts when you
|
|
23
|
-
* [complete the Upload](https://
|
|
24
|
+
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
24
25
|
*/
|
|
25
26
|
create(uploadID, body, options) {
|
|
26
27
|
return this._client.post((0, path_1.path) `/uploads/${uploadID}/parts`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,qDAAkD;AAIlD,uDAAqE;AACrE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,qDAAkD;AAIlD,uDAAqE;AACrE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,YAAY,QAAQ,QAAQ,EAChC,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;CACF;AArBD,sBAqBC"}
|
|
@@ -8,16 +8,17 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
8
8
|
export class Parts extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Adds a
|
|
11
|
-
* [Part](https://
|
|
12
|
-
* [Upload](https://
|
|
13
|
-
* A Part represents a chunk of bytes from the file you are trying to
|
|
11
|
+
* [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
12
|
+
* to an [Upload](https://developers.openai.com/api/reference/resources/uploads)
|
|
13
|
+
* object. A Part represents a chunk of bytes from the file you are trying to
|
|
14
|
+
* upload.
|
|
14
15
|
*
|
|
15
16
|
* Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
|
|
16
17
|
* maximum of 8 GB.
|
|
17
18
|
*
|
|
18
19
|
* It is possible to add multiple Parts in parallel. You can decide the intended
|
|
19
20
|
* order of the Parts when you
|
|
20
|
-
* [complete the Upload](https://
|
|
21
|
+
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
21
22
|
*/
|
|
22
23
|
create(uploadID, body, options) {
|
|
23
24
|
return this._client.post(path `/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.mjs","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,2BAA2B,EAAE,mCAA+B;AACrE,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"parts.mjs","sourceRoot":"","sources":["../../src/resources/uploads/parts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,2BAA2B,EAAE,mCAA+B;AACrE,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,YAAY,QAAQ,QAAQ,EAChC,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;CACF"}
|
|
@@ -11,24 +11,24 @@ export declare class Uploads extends APIResource {
|
|
|
11
11
|
parts: PartsAPI.Parts;
|
|
12
12
|
/**
|
|
13
13
|
* Creates an intermediate
|
|
14
|
-
* [Upload](https://
|
|
14
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads) object
|
|
15
15
|
* that you can add
|
|
16
|
-
* [Parts](https://
|
|
17
|
-
* Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
18
|
-
* after you create it.
|
|
16
|
+
* [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
17
|
+
* to. Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
18
|
+
* hour after you create it.
|
|
19
19
|
*
|
|
20
20
|
* Once you complete the Upload, we will create a
|
|
21
|
-
* [File](https://
|
|
21
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
22
22
|
* contains all the parts you uploaded. This File is usable in the rest of our
|
|
23
23
|
* platform as a regular File object.
|
|
24
24
|
*
|
|
25
25
|
* For certain `purpose` values, the correct `mime_type` must be specified. Please
|
|
26
26
|
* refer to documentation for the
|
|
27
|
-
* [supported MIME types for your use case](https://
|
|
27
|
+
* [supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).
|
|
28
28
|
*
|
|
29
29
|
* For guidance on the proper filename extensions for each purpose, please follow
|
|
30
30
|
* the documentation on
|
|
31
|
-
* [creating a File](https://
|
|
31
|
+
* [creating a File](https://developers.openai.com/api/reference/resources/files/methods/create).
|
|
32
32
|
*
|
|
33
33
|
* Returns the Upload object with status `pending`.
|
|
34
34
|
*/
|
|
@@ -41,10 +41,10 @@ export declare class Uploads extends APIResource {
|
|
|
41
41
|
cancel(uploadID: string, options?: RequestOptions): APIPromise<Upload>;
|
|
42
42
|
/**
|
|
43
43
|
* Completes the
|
|
44
|
-
* [Upload](https://
|
|
44
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads).
|
|
45
45
|
*
|
|
46
46
|
* Within the returned Upload object, there is a nested
|
|
47
|
-
* [File](https://
|
|
47
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
48
48
|
* is ready to use in the rest of the platform.
|
|
49
49
|
*
|
|
50
50
|
* You can specify the order of the Parts by passing in an ordered list of the Part
|
|
@@ -88,7 +88,7 @@ export interface Upload {
|
|
|
88
88
|
object: 'upload';
|
|
89
89
|
/**
|
|
90
90
|
* The intended purpose of the file.
|
|
91
|
-
* [Please refer here](https://
|
|
91
|
+
* [Please refer here](https://developers.openai.com/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose)
|
|
92
92
|
* for acceptable values.
|
|
93
93
|
*/
|
|
94
94
|
purpose: string;
|
|
@@ -121,7 +121,7 @@ export interface UploadCreateParams {
|
|
|
121
121
|
* The intended purpose of the uploaded file.
|
|
122
122
|
*
|
|
123
123
|
* See the
|
|
124
|
-
* [documentation on File purposes](https://
|
|
124
|
+
* [documentation on File purposes](https://developers.openai.com/api/reference/resources/files/methods/create#%28resource%29%20files%20%3E%20%28method%29%20create%20%3E%20%28params%29%200%20%3E%20%28param%29%20purpose%20%3E%20%28schema%29).
|
|
125
125
|
*/
|
|
126
126
|
purpose: FilesAPI.FilePurpose;
|
|
127
127
|
/**
|
|
@@ -11,24 +11,24 @@ export declare class Uploads extends APIResource {
|
|
|
11
11
|
parts: PartsAPI.Parts;
|
|
12
12
|
/**
|
|
13
13
|
* Creates an intermediate
|
|
14
|
-
* [Upload](https://
|
|
14
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads) object
|
|
15
15
|
* that you can add
|
|
16
|
-
* [Parts](https://
|
|
17
|
-
* Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
18
|
-
* after you create it.
|
|
16
|
+
* [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
17
|
+
* to. Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
18
|
+
* hour after you create it.
|
|
19
19
|
*
|
|
20
20
|
* Once you complete the Upload, we will create a
|
|
21
|
-
* [File](https://
|
|
21
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
22
22
|
* contains all the parts you uploaded. This File is usable in the rest of our
|
|
23
23
|
* platform as a regular File object.
|
|
24
24
|
*
|
|
25
25
|
* For certain `purpose` values, the correct `mime_type` must be specified. Please
|
|
26
26
|
* refer to documentation for the
|
|
27
|
-
* [supported MIME types for your use case](https://
|
|
27
|
+
* [supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).
|
|
28
28
|
*
|
|
29
29
|
* For guidance on the proper filename extensions for each purpose, please follow
|
|
30
30
|
* the documentation on
|
|
31
|
-
* [creating a File](https://
|
|
31
|
+
* [creating a File](https://developers.openai.com/api/reference/resources/files/methods/create).
|
|
32
32
|
*
|
|
33
33
|
* Returns the Upload object with status `pending`.
|
|
34
34
|
*/
|
|
@@ -41,10 +41,10 @@ export declare class Uploads extends APIResource {
|
|
|
41
41
|
cancel(uploadID: string, options?: RequestOptions): APIPromise<Upload>;
|
|
42
42
|
/**
|
|
43
43
|
* Completes the
|
|
44
|
-
* [Upload](https://
|
|
44
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads).
|
|
45
45
|
*
|
|
46
46
|
* Within the returned Upload object, there is a nested
|
|
47
|
-
* [File](https://
|
|
47
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
48
48
|
* is ready to use in the rest of the platform.
|
|
49
49
|
*
|
|
50
50
|
* You can specify the order of the Parts by passing in an ordered list of the Part
|
|
@@ -88,7 +88,7 @@ export interface Upload {
|
|
|
88
88
|
object: 'upload';
|
|
89
89
|
/**
|
|
90
90
|
* The intended purpose of the file.
|
|
91
|
-
* [Please refer here](https://
|
|
91
|
+
* [Please refer here](https://developers.openai.com/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose)
|
|
92
92
|
* for acceptable values.
|
|
93
93
|
*/
|
|
94
94
|
purpose: string;
|
|
@@ -121,7 +121,7 @@ export interface UploadCreateParams {
|
|
|
121
121
|
* The intended purpose of the uploaded file.
|
|
122
122
|
*
|
|
123
123
|
* See the
|
|
124
|
-
* [documentation on File purposes](https://
|
|
124
|
+
* [documentation on File purposes](https://developers.openai.com/api/reference/resources/files/methods/create#%28resource%29%20files%20%3E%20%28method%29%20create%20%3E%20%28params%29%200%20%3E%20%28param%29%20purpose%20%3E%20%28schema%29).
|
|
125
125
|
*/
|
|
126
126
|
purpose: FilesAPI.FilePurpose;
|
|
127
127
|
/**
|
|
@@ -17,24 +17,24 @@ class Uploads extends resource_1.APIResource {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Creates an intermediate
|
|
20
|
-
* [Upload](https://
|
|
20
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads) object
|
|
21
21
|
* that you can add
|
|
22
|
-
* [Parts](https://
|
|
23
|
-
* Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
24
|
-
* after you create it.
|
|
22
|
+
* [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
23
|
+
* to. Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
24
|
+
* hour after you create it.
|
|
25
25
|
*
|
|
26
26
|
* Once you complete the Upload, we will create a
|
|
27
|
-
* [File](https://
|
|
27
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
28
28
|
* contains all the parts you uploaded. This File is usable in the rest of our
|
|
29
29
|
* platform as a regular File object.
|
|
30
30
|
*
|
|
31
31
|
* For certain `purpose` values, the correct `mime_type` must be specified. Please
|
|
32
32
|
* refer to documentation for the
|
|
33
|
-
* [supported MIME types for your use case](https://
|
|
33
|
+
* [supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).
|
|
34
34
|
*
|
|
35
35
|
* For guidance on the proper filename extensions for each purpose, please follow
|
|
36
36
|
* the documentation on
|
|
37
|
-
* [creating a File](https://
|
|
37
|
+
* [creating a File](https://developers.openai.com/api/reference/resources/files/methods/create).
|
|
38
38
|
*
|
|
39
39
|
* Returns the Upload object with status `pending`.
|
|
40
40
|
*/
|
|
@@ -54,10 +54,10 @@ class Uploads extends resource_1.APIResource {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Completes the
|
|
57
|
-
* [Upload](https://
|
|
57
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads).
|
|
58
58
|
*
|
|
59
59
|
* Within the returned Upload object, there is a nested
|
|
60
|
-
* [File](https://
|
|
60
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
61
61
|
* is ready to use in the rest of the platform.
|
|
62
62
|
*
|
|
63
63
|
* You can specify the order of the Parts by passing in an ordered list of the Part
|
|
@@ -13,24 +13,24 @@ export class Uploads extends APIResource {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Creates an intermediate
|
|
16
|
-
* [Upload](https://
|
|
16
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads) object
|
|
17
17
|
* that you can add
|
|
18
|
-
* [Parts](https://
|
|
19
|
-
* Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
20
|
-
* after you create it.
|
|
18
|
+
* [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
19
|
+
* to. Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
20
|
+
* hour after you create it.
|
|
21
21
|
*
|
|
22
22
|
* Once you complete the Upload, we will create a
|
|
23
|
-
* [File](https://
|
|
23
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
24
24
|
* contains all the parts you uploaded. This File is usable in the rest of our
|
|
25
25
|
* platform as a regular File object.
|
|
26
26
|
*
|
|
27
27
|
* For certain `purpose` values, the correct `mime_type` must be specified. Please
|
|
28
28
|
* refer to documentation for the
|
|
29
|
-
* [supported MIME types for your use case](https://
|
|
29
|
+
* [supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).
|
|
30
30
|
*
|
|
31
31
|
* For guidance on the proper filename extensions for each purpose, please follow
|
|
32
32
|
* the documentation on
|
|
33
|
-
* [creating a File](https://
|
|
33
|
+
* [creating a File](https://developers.openai.com/api/reference/resources/files/methods/create).
|
|
34
34
|
*
|
|
35
35
|
* Returns the Upload object with status `pending`.
|
|
36
36
|
*/
|
|
@@ -50,10 +50,10 @@ export class Uploads extends APIResource {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Completes the
|
|
53
|
-
* [Upload](https://
|
|
53
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads).
|
|
54
54
|
*
|
|
55
55
|
* Within the returned Upload object, there is a nested
|
|
56
|
-
* [File](https://
|
|
56
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
57
57
|
* is ready to use in the rest of the platform.
|
|
58
58
|
*
|
|
59
59
|
* You can specify the order of the Parts by passing in an ordered list of the Part
|
|
@@ -77,8 +77,8 @@ export interface VectorStoreFileBatch {
|
|
|
77
77
|
status: 'in_progress' | 'completed' | 'cancelled' | 'failed';
|
|
78
78
|
/**
|
|
79
79
|
* The ID of the
|
|
80
|
-
* [vector store](https://
|
|
81
|
-
* that the [File](https://
|
|
80
|
+
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
81
|
+
* that the [File](https://developers.openai.com/api/reference/resources/files) is
|
|
82
82
|
* attached to.
|
|
83
83
|
*/
|
|
84
84
|
vector_store_id: string;
|
|
@@ -124,12 +124,12 @@ export interface FileBatchCreateParams {
|
|
|
124
124
|
*/
|
|
125
125
|
chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
|
|
126
126
|
/**
|
|
127
|
-
* A list of [File](https://
|
|
128
|
-
* the vector store should use. Useful for tools like `file_search` that
|
|
129
|
-
* files. If `attributes` or `chunking_strategy` are provided, they will
|
|
130
|
-
* to all files in the batch. The maximum batch size is 2000 files. This
|
|
131
|
-
* is recommended for multi-file ingestion and helps reduce
|
|
132
|
-
* request pressure. Mutually exclusive with `files`.
|
|
127
|
+
* A list of [File](https://developers.openai.com/api/reference/resources/files)
|
|
128
|
+
* IDs that the vector store should use. Useful for tools like `file_search` that
|
|
129
|
+
* can access files. If `attributes` or `chunking_strategy` are provided, they will
|
|
130
|
+
* be applied to all files in the batch. The maximum batch size is 2000 files. This
|
|
131
|
+
* endpoint is recommended for multi-file ingestion and helps reduce
|
|
132
|
+
* per-vector-store write request pressure. Mutually exclusive with `files`.
|
|
133
133
|
*/
|
|
134
134
|
file_ids?: Array<string>;
|
|
135
135
|
/**
|
|
@@ -145,10 +145,10 @@ export interface FileBatchCreateParams {
|
|
|
145
145
|
export declare namespace FileBatchCreateParams {
|
|
146
146
|
interface File {
|
|
147
147
|
/**
|
|
148
|
-
* A [File](https://
|
|
149
|
-
* vector store should use. Useful for tools like `file_search` that can access
|
|
148
|
+
* A [File](https://developers.openai.com/api/reference/resources/files) ID that
|
|
149
|
+
* the vector store should use. Useful for tools like `file_search` that can access
|
|
150
150
|
* files. For multi-file ingestion, we recommend
|
|
151
|
-
* [`file_batches`](https://
|
|
151
|
+
* [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create)
|
|
152
152
|
* to minimize per-vector-store write requests.
|
|
153
153
|
*/
|
|
154
154
|
file_id: string;
|
|
@@ -77,8 +77,8 @@ export interface VectorStoreFileBatch {
|
|
|
77
77
|
status: 'in_progress' | 'completed' | 'cancelled' | 'failed';
|
|
78
78
|
/**
|
|
79
79
|
* The ID of the
|
|
80
|
-
* [vector store](https://
|
|
81
|
-
* that the [File](https://
|
|
80
|
+
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
81
|
+
* that the [File](https://developers.openai.com/api/reference/resources/files) is
|
|
82
82
|
* attached to.
|
|
83
83
|
*/
|
|
84
84
|
vector_store_id: string;
|
|
@@ -124,12 +124,12 @@ export interface FileBatchCreateParams {
|
|
|
124
124
|
*/
|
|
125
125
|
chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
|
|
126
126
|
/**
|
|
127
|
-
* A list of [File](https://
|
|
128
|
-
* the vector store should use. Useful for tools like `file_search` that
|
|
129
|
-
* files. If `attributes` or `chunking_strategy` are provided, they will
|
|
130
|
-
* to all files in the batch. The maximum batch size is 2000 files. This
|
|
131
|
-
* is recommended for multi-file ingestion and helps reduce
|
|
132
|
-
* request pressure. Mutually exclusive with `files`.
|
|
127
|
+
* A list of [File](https://developers.openai.com/api/reference/resources/files)
|
|
128
|
+
* IDs that the vector store should use. Useful for tools like `file_search` that
|
|
129
|
+
* can access files. If `attributes` or `chunking_strategy` are provided, they will
|
|
130
|
+
* be applied to all files in the batch. The maximum batch size is 2000 files. This
|
|
131
|
+
* endpoint is recommended for multi-file ingestion and helps reduce
|
|
132
|
+
* per-vector-store write request pressure. Mutually exclusive with `files`.
|
|
133
133
|
*/
|
|
134
134
|
file_ids?: Array<string>;
|
|
135
135
|
/**
|
|
@@ -145,10 +145,10 @@ export interface FileBatchCreateParams {
|
|
|
145
145
|
export declare namespace FileBatchCreateParams {
|
|
146
146
|
interface File {
|
|
147
147
|
/**
|
|
148
|
-
* A [File](https://
|
|
149
|
-
* vector store should use. Useful for tools like `file_search` that can access
|
|
148
|
+
* A [File](https://developers.openai.com/api/reference/resources/files) ID that
|
|
149
|
+
* the vector store should use. Useful for tools like `file_search` that can access
|
|
150
150
|
* files. For multi-file ingestion, we recommend
|
|
151
|
-
* [`file_batches`](https://
|
|
151
|
+
* [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create)
|
|
152
152
|
* to minimize per-vector-store write requests.
|
|
153
153
|
*/
|
|
154
154
|
file_id: string;
|